httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject svn commit: r353810 - /httpd/httpd/branches/async-read-dev/server/protocol.c
Date Sun, 04 Dec 2005 04:07:17 GMT
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 */



Mime
View raw message