From: Brian Pane Date: Sun, 4 Dec 2005 04:07:15 +0000 (+0000) Subject: Fix the handling of HTTP/0.9 requests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a780de12fd2aee1387efb7c04764e3c104e03f7;p=thirdparty%2Fapache%2Fhttpd.git Fix the handling of HTTP/0.9 requests git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/async-read-dev@353810 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index 138945f7fc6..a1717c8bf05 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -935,7 +935,7 @@ static apr_status_t set_mime_header(request_rec *r, char *line) "
\n",
                                    ap_escape_html(r->pool, line),
                                    "
\n", NULL)); - return APR_ENOSPC; + return APR_EGENERAL; } tmp_field = value - 1; /* last character of field-name */ @@ -1072,6 +1072,10 @@ static apr_status_t read_partial_request(request_rec *r) { length_limit = r->server->limit_req_line; } else { + if (r->assbackwards) { + r->status = HTTP_OK; + break; + } length_limit = r->server->limit_req_fieldsize; } /* TODO: use a nonblocking call in place of ap_rgetline */