mirror of https://github.com/Dreamacro/clash.git
Fix: remove Content-Length from CONNECT response (#1502)
This commit is contained in:
parent
b3a293ab07
commit
4578b2c826
|
@ -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 New Issue