Add a debug assertion to verify that c->remain is zero when a new
request starts. ap_http_filter() does the wrong thing otherwise.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88540
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.15-dev
+ *) Handle ap_discard_request_body() being called more than once.
+ [Greg Ames, Jeff Trawick]
+
*) Get rid of an inadvertent close of file descriptor 2 in
mod_mime_magic. [Greg Ames, Jeff Trawick]
{
int rv;
- if ((rv = ap_setup_client_block(r, REQUEST_CHUNKED_DECHUNK)))
- return rv;
+ if (r->read_length == 0) { /* if not read already */
+ if ((rv = ap_setup_client_block(r, REQUEST_CHUNKED_DECHUNK)))
+ return rv;
+ }
/* In order to avoid sending 100 Continue when we already know the
* final response status, and yet not kill the connection if there is
const char *expect;
int access_status;
+ AP_DEBUG_ASSERT(conn->remain == 0);
+
apr_pool_create(&p, conn->pool);
r = apr_pcalloc(p, sizeof(request_rec));
r->pool = p;