You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2013/05/22 17:49:57 UTC
svn commit: r1485257 - /httpd/httpd/trunk/modules/http/http_filters.c
Author: minfrin
Date: Wed May 22 15:49:57 2013
New Revision: 1485257
URL: http://svn.apache.org/r1485257
Log:
core: Make sure we allow unconstrained bodies from a proxy.
Modified:
httpd/httpd/trunk/modules/http/http_filters.c
Modified: httpd/httpd/trunk/modules/http/http_filters.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/http_filters.c?rev=1485257&r1=1485256&r2=1485257&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/http_filters.c (original)
+++ httpd/httpd/trunk/modules/http/http_filters.c Wed May 22 15:49:57 2013
@@ -395,7 +395,7 @@ apr_status_t ap_http_filter(ap_filter_t
case BODY_CHUNK_DATA: {
/* Ensure that the caller can not go over our boundary point. */
- if (ctx->remaining < readbytes) {
+ if (ctx->state != BODY_NONE && ctx->remaining < readbytes) {
readbytes = ctx->remaining;
}
if (readbytes > 0) {