Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

DO NOT REPLY [Bug 10052] - mod_proxy inserts a blank new line int headers when used in conjunction with mod_rewrite and mod_jk

From: <bugzilla(at)apache.org>
Date: Tue Jun 25 2002 - 10:21:06 EDT


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=10052>. 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=10052

mod_proxy inserts a blank new line int headers when used in conjunction with mod_rewrite and mod_jk

  • Additional Comments From riek@de.alcove.com 2002-06-25 14:21 ------- I think the problem is that the trailing CRLF is not handled in ap_proxy_read_response_line in proxy_util.c. Here is a patch that works fine for me: --- proxy_util.c.orig Tue Jun 25 16:00:48 2002 +++ proxy_util.c Tue Jun 25 16:01:48 2002 @@ -1572,6 +1572,7 @@ int ap_proxy_table_replace(table *base, int ap_proxy_read_response_line(BUFF *f, request_rec *r, char *buffer, int size, int *backasswards, int *major, int *minor) { long len; + char *value, *end; len = ap_getline(buffer, size-1, f, 0); if (len == -1) { @@ -1610,6 +1611,11 @@ int ap_proxy_read_response_line(BUFF *f, buffer[12] = '\0'; r->status = atoi(&buffer[9]); buffer[12] = ' '; + + /* RIEK This eliminates trailing WTs AND CRLF*/ + value = &buffer[12]; + for (end = &value[strlen(value) - 1]; end > value && ap_isspace(*end); --end) + *end = '\0'; r->status_line = ap_pstrdup(r->pool, &buffer[9]);

To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org Received on Tue Jun 25 14:20:59 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 16:43:40 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library