From: William A. Rowe Jr Date: Fri, 15 Jul 2005 17:32:14 +0000 (+0000) Subject: leaving force-proxy-request-1.0 for broken clients, revert my X-Git-Tag: 2.1.7~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fac43eeab4a562e0550c340172fb4d4c86ac32cb;p=apache leaving force-proxy-request-1.0 for broken clients, revert my patch for forcing an HTTP/1.0 proxy request, if the client request is HTTP/1.0, per Roy. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@219221 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index b3c33e758b..93f0095b86 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -596,15 +596,13 @@ apr_status_t ap_proxy_http_request(apr_pool_t *p, request_rec *r, p_conn->close++; } - if (apr_table_get(r->subprocess_env, "force-proxy-request-1.0") - || ((r->proto_num < HTTP_VERSION(1,1)) - && !apr_table_get(r->subprocess_env, "force-proxy-request-1.1"))) { + if (apr_table_get(r->subprocess_env, "force-proxy-request-1.0")) { buf = apr_pstrcat(p, r->method, " ", url, " HTTP/1.0" CRLF, NULL); force10 = 1; + p_conn->close++; } else { buf = apr_pstrcat(p, r->method, " ", url, " HTTP/1.1" CRLF, NULL); force10 = 0; - p_conn->close++; } if (apr_table_get(r->subprocess_env, "proxy-nokeepalive")) { origin->keepalive = AP_CONN_CLOSE;