From: erickson Date: Thu, 20 Apr 2006 19:50:44 +0000 (+0000) Subject: handling any less-than zero returns X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=754411c64ed88c9a95b93c41700136a2396ff32b;p=working%2FOpenSRF.git handling any less-than zero returns git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@699 9efc2488-bf62-4759-914b-345cdb29e865 --- 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; }