Mod Cplusplus CVS committal
Author : johnksterling
Project : mod_cplusplus
Module : example
Dir : mod_cplusplus/example/handler
Modified Files:
test_handler.cpp
Log Message:
fix up the code a little and add a test and an example for content type
===================================================================
RCS file: /cvsroot/modcplusplus/mod_cplusplus/example/handler/test_handler.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- test_handler.cpp 24 May 2004 01:33:54 -0000 1.13
+++ test_handler.cpp 28 Jun 2004 02:54:44 -0000 1.14
@@ -5,13 +5,13 @@
: ApacheHandler()
{
mHits = 0;
- ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, NULL,
+ ap_log_error(APLOG_MARK, APLOG_INFO, 0, NULL,
"constructing mod_cplusplus handler.");
}
TestHandler::~TestHandler()
{
- ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, NULL,
+ ap_log_error(APLOG_MARK, APLOG_INFO, 0, NULL,
"destroying mod_cplusplus handler.");
}
@@ -21,6 +21,7 @@
apr_size_t len_read;
apr_status_t rc;
mHits++;
+ pRequest->content_type("application/x-httpd-cgi");
pRequest->dump();
pRequest->rprintf("BOO");
ap_setup_client_block(pRequest->get_request_rec(), REQUEST_CHUNKED_ERROR);
|