You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by br...@apache.org on 2005/12/04 05:07:17 UTC

svn commit: r353810 - /httpd/httpd/branches/async-read-dev/server/protocol.c

Author: brianp
Date: Sat Dec  3 20:07:15 2005
New Revision: 353810

URL: http://svn.apache.org/viewcvs?rev=353810&view=rev
Log:
Fix the handling of HTTP/0.9 requests

Modified:
    httpd/httpd/branches/async-read-dev/server/protocol.c

Modified: httpd/httpd/branches/async-read-dev/server/protocol.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/async-read-dev/server/protocol.c?rev=353810&r1=353809&r2=353810&view=diff
==============================================================================
--- httpd/httpd/branches/async-read-dev/server/protocol.c (original)
+++ httpd/httpd/branches/async-read-dev/server/protocol.c Sat Dec  3 20:07:15 2005
@@ -935,7 +935,7 @@
                                    "<pre>\n",
                                    ap_escape_html(r->pool, line),
                                    "</pre>\n", NULL));
-        return APR_ENOSPC;
+        return APR_EGENERAL;
     }
 
     tmp_field = value - 1; /* last character of field-name */
@@ -1072,6 +1072,10 @@
             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 */