Commit 907df1cb authored by Graham Leggett's avatar Graham Leggett
Browse files

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
parent 9c03aadf
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);
    }