Fix: remove Content-Length from CONNECT response (#1502)
This commit is contained in:
parent
2aaefba4e3
commit
8928b3d71d
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ func HandleConn(c net.Conn, in chan<- C.ConnContext, cache *cache.Cache) {
|
||||||
if request.Method == http.MethodConnect {
|
if request.Method == http.MethodConnect {
|
||||||
resp = responseWith(200)
|
resp = responseWith(200)
|
||||||
resp.Status = "Connection established"
|
resp.Status = "Connection established"
|
||||||
|
resp.ContentLength = -1
|
||||||
|
|
||||||
if resp.Write(conn) != nil {
|
if resp.Write(conn) != nil {
|
||||||
break // close connection
|
break // close connection
|
||||||
|
|
Loading…
Reference in a new issue