From 72474d28a3e7c2f618182033ab6d70a8cec6da91 Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Fri, 31 May 2002 20:41:06 +0000 Subject: [PATCH] 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 --- modules/http/http_protocol.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.40.0