From: Graham Leggett Date: Sat, 7 Apr 2001 21:12:39 +0000 (+0000) Subject: Make the CONNECT proxy talk HTTP/1.1. Still need to check if this is X-Git-Tag: 2.0.17~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cbf2b9828766651d3b649a13c78dcda4b83ee69;p=thirdparty%2Fapache%2Fhttpd.git Make the CONNECT proxy talk HTTP/1.1. Still need to check if this is compliant with HTTP/1.1 though... PR: Obtained from: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88757 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_connect.c b/modules/proxy/proxy_connect.c index 65f7932e1bf..3641407106f 100644 --- a/modules/proxy/proxy_connect.c +++ b/modules/proxy/proxy_connect.c @@ -256,8 +256,7 @@ int ap_proxy_connect_handler(request_rec *r, char *url, * the CONNECT request on to it. */ if (proxyport) { - /* FIXME: Error checking ignored. Also, we force - * a HTTP/1.0 request to keep things simple. + /* FIXME: Error checking ignored. */ ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, NULL, "proxy: CONNECT: sending the CONNECT request to the remote proxy"); @@ -271,7 +270,7 @@ int ap_proxy_connect_handler(request_rec *r, char *url, else { ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, NULL, "proxy: CONNECT: Returning 200 OK Status"); - ap_rvputs(r, "HTTP/1.0 200 Connection established" CRLF, NULL); + ap_rvputs(r, "HTTP/1.1 200 Connection established" CRLF, NULL); ap_rvputs(r, "Proxy-agent: ", ap_get_server_version(), CRLF CRLF, NULL); ap_rflush(r); }