From e4058c3c3dc3b5015519f9a9989309f934e6f680 Mon Sep 17 00:00:00 2001 From: Pat Thoyts Date: Sun, 29 Nov 2009 00:58:08 +0000 Subject: [PATCH] Return HTTP/1.0 response to the client on CONNECT. When using Firefox to the sockspy in proxy mode with tls sometimes an attempt to access a new site send the request down the current socket to the wrong host. This is likely a HTTP/1.1 pipelining issue. Signed-off-by: Pat Thoyts --- bin/sockspy.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sockspy.tcl b/bin/sockspy.tcl index f3f2605..9f0aab4 100644 --- a/bin/sockspy.tcl +++ b/bin/sockspy.tcl @@ -642,7 +642,7 @@ proc ProxyConnect {fromSock data} { } if {$method eq "CONNECT"} { # We must send an HTTP response header to the client - set s "HTTP/1.1 200 OK\nServer: SockSpy/$::state(version)\n" + set s "HTTP/1.0 200 OK\nServer: SockSpy/$::state(version)\n" insertData meta $s puts $fromSock $s } -- 2.23.0