From: Pat Thoyts Date: Sun, 29 Nov 2009 00:58:08 +0000 (+0000) Subject: Return HTTP/1.0 response to the client on CONNECT. X-Git-Tag: v2.6~7 X-Git-Url: http://privyetmir.co.uk/gitweb.cgi?a=commitdiff_plain;h=e4058c3c3dc3b5015519f9a9989309f934e6f680;p=sockspy 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 --- 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 }