From 754411c64ed88c9a95b93c41700136a2396ff32b Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 20 Apr 2006 19:50:44 +0000 Subject: [PATCH] handling any less-than zero returns git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@699 9efc2488-bf62-4759-914b-345cdb29e865 --- src/gateway/apachetools.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/gateway/apachetools.c b/src/gateway/apachetools.c index 89db971..6561683 100644 --- a/src/gateway/apachetools.c +++ b/src/gateway/apachetools.c @@ -17,8 +17,6 @@ string_array* apacheParseParms(request_rec* r) { /* gather the post args and append them to the url query string */ if( !strcmp(r->method,"POST") ) { - osrfLogDebug(OSRF_LOG_MARK, "gateway checking for post data.."); - ap_setup_client_block(r, REQUEST_CHUNKED_DECHUNK); osrfLogDebug(OSRF_LOG_MARK, "gateway reading post data.."); @@ -29,13 +27,12 @@ string_array* apacheParseParms(request_rec* r) { memset(body,0,1025); buffer = buffer_init(1025); - osrfLogDebug(OSRF_LOG_MARK, "gateway entering ap_get_client_block loop"); - long bread; while( (bread = ap_get_client_block(r, body, 1024)) ) { - if(bread == -1) { - osrfLogInfo(OSRF_LOG_MARK, "ap_get_client_block(): returned error, exiting POST reader"); + if(bread < 0) { + osrfLogInfo(OSRF_LOG_MARK, + "ap_get_client_block(): returned error, exiting POST reader"); break; } -- 2.11.0