]> granicus.if.org Git - apache/commitdiff
If the request doesn't have a body, then don't try to read it. Without
authorRyan Bloom <rbb@apache.org>
Fri, 31 May 2002 20:41:06 +0000 (20:41 +0000)
committerRyan Bloom <rbb@apache.org>
Fri, 31 May 2002 20:41:06 +0000 (20:41 +0000)
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

index cd99c64bb70fa804ebb09233f1ea27095b6b1d43..b2dcfacd641b638ba4964c5f4904b831fac2699b 100644 (file)
@@ -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);