ASF Bugzilla – Attachment 8666 Details for
Bug 23998
mod_proxy truncates status line header causing warning in log files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix for trailing space handling
ap_proxst.diff (text/plain), 1.29 KB, created by
Joe Orton
on 2003-10-22 16:14:18 UTC
(
hide
)
Description:
fix for trailing space handling
Filename:
MIME Type:
Creator:
Joe Orton
Created:
2003-10-22 16:14:18 UTC
Size:
1.29 KB
patch
obsolete
>Index: modules/proxy/proxy_http.c >=================================================================== >RCS file: /home/cvs/httpd-2.0/modules/proxy/proxy_http.c,v >retrieving revision 1.171 >retrieving revision 1.172 >diff -u -r1.171 -r1.172 >--- modules/proxy/proxy_http.c 3 Sep 2003 19:27:07 -0000 1.171 >+++ modules/proxy/proxy_http.c 22 Oct 2003 16:09:58 -0000 1.172 >@@ -851,16 +851,18 @@ > backasswards = 0; > > keepchar = buffer[12]; >- if (keepchar == '\0') { >- ap_log_error(APLOG_MARK, APLOG_WARNING, 0, >- r->server, "proxy: bad HTTP/%d.%d status line " >- "returned by %s (%s)", major, minor, r->uri, >- r->method); >- } > buffer[12] = '\0'; > r->status = atoi(&buffer[9]); > >- buffer[12] = keepchar; >+ if (keepchar != '\0') { >+ buffer[12] = keepchar; >+ } else { >+ /* 2616 requires the space in Status-Line; the origin >+ * server may have sent one but ap_rgetline_core will >+ * have stripped it. */ >+ buffer[12] = ' '; >+ buffer[13] = '\0'; >+ } > r->status_line = apr_pstrdup(p, &buffer[9]); > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 23998
: 8666 |
8690
|
8691