stop sending content-length in http CONNECT

pull/432/head
Darien Raymond 8 years ago
parent 18b0b87c52
commit db8e09512c
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -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 {

Loading…
Cancel
Save