From db8e09512c78a272a04efa0810ce3529e2e8c2c6 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 4 Apr 2017 11:01:41 +0200 Subject: [PATCH] stop sending content-length in http CONNECT --- proxy/http/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/http/server.go b/proxy/http/server.go index 4ddb9b7e3..e9fd95043 100644 --- a/proxy/http/server.go +++ b/proxy/http/server.go @@ -114,7 +114,7 @@ func (s *Server) handleConnect(ctx context.Context, request *http.Request, reade ProtoMinor: 1, Header: http.Header(make(map[string][]string)), Body: nil, - ContentLength: 0, + ContentLength: -1, // Don't send Content-Length in CONNECT. Close: false, } if err := response.Write(writer); err != nil {