From: Ian Holsman Date: Wed, 21 Aug 2002 16:01:15 +0000 (+0000) Subject: fix the case when a server doesn't send a response string X-Git-Tag: AGB_BEFORE_AAA_CHANGES~201 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5676d38cc255bcee562285305e231e7a8cde8024;p=apache fix the case when a server doesn't send a response string Submitted by: Brett Hutley J.D. Silvester git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96469 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 29bc4e5c3c..b50045ac6a 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,6 @@ Changes with Apache 2.0.41 + *) mod-proxy: handle proxied responses with no status lines + [JD Silvester , Brett Huttley ] *) Fix bug where environment or command line arguments containing non-ASCII-7 characters would cause the Win32 child process creation diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index 372565ab74..fe40235005 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -676,6 +676,7 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r, char *server_portstr) { conn_rec *c = r->connection; char buffer[HUGE_STRING_LEN]; + char keepchar; request_rec *rp; apr_bucket *e; int len, backasswards; @@ -735,10 +736,11 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r, } backasswards = 0; + keepchar = buffer[12]; buffer[12] = '\0'; r->status = atoi(&buffer[9]); - buffer[12] = ' '; + buffer[12] = keepchar; r->status_line = apr_pstrdup(p, &buffer[9]); /* read the headers. */