From: Ryan Bloom Date: Fri, 31 May 2002 20:41:06 +0000 (+0000) Subject: If the request doesn't have a body, then don't try to read it. Without X-Git-Tag: 2.0.37~128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5777ed3e6e28245e79a8eb9b4a6c88b463d85b8;p=apache If the request doesn't have a body, then don't try to read it. Without this, the httpd-test suite was taking five minutes for EVERY test. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95452 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index cd99c64bb7..b2dcfacd64 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -903,6 +903,11 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b, if (!ctx->remaining) { switch (ctx->state) { case BODY_NONE: + if (f->r->proxyreq != PROXYREQ_RESPONSE) { + e = apr_bucket_eos_create(f->c->bucket_alloc); + APR_BRIGADE_INSERT_TAIL(b, e); + return APR_SUCCESS; + } break; case BODY_LENGTH: e = apr_bucket_eos_create(f->c->bucket_alloc);