httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18573] New: - http proxy doesn't handle responses w/o reason phrase
Date Tue, 01 Apr 2003 16:50:51 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18573>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18573

http proxy doesn't handle responses w/o reason phrase

           Summary: http proxy doesn't handle responses w/o reason phrase
           Product: Apache httpd-2.0
           Version: 2.0.44
          Platform: All
               URL: http://www.yahoogroups.com
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: sfandino@yahoo.com


yahoogroups return response lines as

  HTTP/1.1 200

that make the proxy fail, the patch below fakes a reason phrase

Bye,

  - Salva


--- proxy_http.c~       Fri Nov  8 10:24:00 2002
+++ proxy_http.c        Tue Apr  1 18:10:14 2003
@@ -766,7 +766,13 @@
             r->status = atoi(&buffer[9]);
 
             buffer[12] = keepchar;
-            r->status_line = apr_pstrdup(p, &buffer[9]);
+            
+            if (keepchar) {
+               r->status_line = apr_pstrdup(p, &buffer[9]);
+            }
+            else {
+               r->status_line = apr_pstrcat(p, &buffer[9], " Unknow reason", NULL);
+            }
             
 
             /* read the headers. */

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message