Mod Cplusplus CVS committal
Author : johnksterling
Project : mod_cplusplus
Module : test
Dir : mod_cplusplus/test/t/handler
Modified Files:
handler.t
Log Message:
fix up the code a little and add a test and an example for content type
===================================================================
RCS file: /cvsroot/modcplusplus/mod_cplusplus/test/t/handler/handler.t,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- handler.t 26 Apr 2002 18:57:00 -0000 1.2
+++ handler.t 28 Jun 2004 02:54:44 -0000 1.3
@@ -13,5 +13,10 @@
my $handler_url = '/cpp-handler';
-ok GET_BODY($handler_url) =~ "BOO";
+my $result = GET_HEAD($handler_url);
+my $header_worked = ($result =~ "application/x-httpd-cgi");
+my $content_worked = ($result =~ "BOO");
+
+ok ($header_worked && $content_worked);
+
|