end of the status line returned from the proxied server.
Note that buffer is NULL terminated by the call to
ap_proxy_string_read() so there is no need to terminate it
again.
Submitted by: Adam Sussman
Reviewed by: Bill Stoddard
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92692
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.30-dev
+ *) Prevent mod_proxy from truncating one character off the
+ end of the status line returned from the proxied server.
+ [Adam Sussman, Bill Stoddard]
+
*) Eliminate loop in ap_proxy_string_read().
[Adam Sussman, Bill Stoddard]
/* Is it an HTTP/1 response?
* This is buggy if we ever see an HTTP/1.10
+ * XXX: This code is way crufty...
*/
if (apr_date_checkmask(buffer, "HTTP/#.# ###*")) {
int major, minor;
"server: ", buffer, NULL));
}
backasswards = 0;
- buffer[--len] = '\0';
buffer[12] = '\0';
r->status = atoi(&buffer[9]);