Commit 72474d28 authored by Ryan Bloom's avatar Ryan Bloom
Browse files

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
parent 0b72270d
Loading
Loading
Loading
Loading
+5 −0
Changes for modules/http/http_protocol.c: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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);