]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Make the CONNECT proxy talk HTTP/1.1. Still need to check if this is
authorGraham Leggett <minfrin@apache.org>
Sat, 7 Apr 2001 21:12:39 +0000 (21:12 +0000)
committerGraham Leggett <minfrin@apache.org>
Sat, 7 Apr 2001 21:12:39 +0000 (21:12 +0000)
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

modules/proxy/proxy_connect.c

index 65f7932e1bfa82e411085ffcd1b636c9fd31825e..3641407106f59209d6f8eb637ddccb83c5844bb0 100644 (file)
@@ -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);
     }