[Modcplusplus-devel] (gr84b8) mod_cplusplus/example/handler test_handler.cpp
Brought to you by:
gr84b8,
johnksterling
From: Mod C. C. L. <mod...@so...> - 2002-04-17 01:32:56
|
Mod Cplusplus CVS committal Author : gr84b8 Project : mod_cplusplus Module : example Dir : mod_cplusplus/example/handler Modified Files: test_handler.cpp Log Message: make get_client_block a method of the request =================================================================== RCS file: /cvsroot/modcplusplus/mod_cplusplus/example/handler/test_handler.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- test_handler.cpp 15 Apr 2002 22:06:24 -0000 1.7 +++ test_handler.cpp 17 Apr 2002 01:32:24 -0000 1.8 @@ -25,11 +25,11 @@ if( (pRequest->method_number() == M_POST) || (pRequest->method_number() == M_PUT) ) { pRequest->rprintf("Content:"); - while((len_read = ap_get_client_block(pRequest->get_request_rec(), - buf, sizeof(buf))) > 0) { - pRequest->rprintf("%s", apr_pstrndup(pRequest->pool(), - buf, len_read)); - } + while((len_read = pRequest->get_client_block(buf, + sizeof(buf))) > 0) { + pRequest->rprintf("%s", apr_pstrndup(pRequest->pool(), + buf, len_read)); + } } return OK; } |