]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Tomcat with mod_jk2 sometimes omits the Reason-Phrase from the
authorMartin Kraemer <martin@apache.org>
Mon, 22 Jul 2002 16:26:03 +0000 (16:26 +0000)
committerMartin Kraemer <martin@apache.org>
Mon, 22 Jul 2002 16:26:03 +0000 (16:26 +0000)
commit86a5849ee6dca9332c95b4d9591bf39d6c246d46
tree398896f314b12574734388cac5c772019c4aa574
parent2b23070a9aeb8943e37fc16a64c9a04673077fa3
Tomcat with mod_jk2 sometimes omits the Reason-Phrase from the
response line ("HTTP/1.1 200 \r\n"). It looks like RFC2616 allows this,
but ap_getline() strips the trailing blank, and that lead to
an error in ap_proxy_read_response_line() for proxy-requests to
Tomcat+mod_jk2 servers. (It replaced the NIL after the "200" by
a space, and so the resulting response line had an extra NL appended).
Now the SP character which was deleted by ap_getline() is reappended,
avoiding the erroneous '\0'->' ' change, and preserving RFC2616's
requirement
     Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF
     Reason-Phrase = *<TEXT, excluding CR, LF>
(thus there is now always a SP after the Status-Code).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@96144 13f79535-47bb-0310-9956-ffa450edef68
src/modules/proxy/proxy_util.c