You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2005/01/06 15:16:56 UTC
svn commit: r124377 - /httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c
Author: trawick
Date: Thu Jan 6 06:16:54 2005
New Revision: 124377
URL: http://svn.apache.org/viewcvs?view=rev&rev=124377
Log:
if last brigade of data received from client had data
and EOS, then input_brigade would be empty here
Modified:
httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c
Modified: httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c
Url: http://svn.apache.org/viewcvs/httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c?view=diff&rev=124377&p1=httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c&r1=124376&p2=httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c&r2=124377
==============================================================================
--- httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c (original)
+++ httpd/httpd/branches/proxy-reqbody/modules/proxy/proxy_http.c Thu Jan 6 06:16:54 2005
@@ -392,10 +392,12 @@
b = header_brigade;
}
else {
- /* input brigade still has an EOS which we can't pass to the output_filters. */
- e = APR_BRIGADE_LAST(input_brigade);
- AP_DEBUG_ASSERT(APR_BUCKET_IS_EOS(e));
- apr_bucket_delete(e);
+ if (!APR_BRIGADE_EMPTY(input_brigade)) {
+ /* input brigade still has an EOS which we can't pass to the output_filters. */
+ e = APR_BRIGADE_LAST(input_brigade);
+ AP_DEBUG_ASSERT(APR_BUCKET_IS_EOS(e));
+ apr_bucket_delete(e);
+ }
e = apr_bucket_immortal_create(ASCII_ZERO ASCII_CRLF
/* <trailers> */
ASCII_CRLF,