mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-06 20:06:49 +00:00
stop sending content-length in http CONNECT
This commit is contained in:
parent
18b0b87c52
commit
db8e09512c
@ -114,7 +114,7 @@ func (s *Server) handleConnect(ctx context.Context, request *http.Request, reade
|
|||||||
ProtoMinor: 1,
|
ProtoMinor: 1,
|
||||||
Header: http.Header(make(map[string][]string)),
|
Header: http.Header(make(map[string][]string)),
|
||||||
Body: nil,
|
Body: nil,
|
||||||
ContentLength: 0,
|
ContentLength: -1, // Don't send Content-Length in CONNECT.
|
||||||
Close: false,
|
Close: false,
|
||||||
}
|
}
|
||||||
if err := response.Write(writer); err != nil {
|
if err := response.Write(writer); err != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user