~/Projects/sing
git clone https://code.lsong.org/sing
Commit
- Commit
- 719a27fc421f4c9f3ba939ef4de9b1770aeb3ac6
- Author
- 世界 <[email protected]>
- Date
- 2022-07-01 13:29:56 +0800 +0800
- Diffstat
protocol/http/handshake.go | 8 +-------
Fix http handshake
diff --git a/protocol/http/handshake.go b/protocol/http/handshake.go index 7c95f4d0404c60d216ab0a069a270923821f549b..3607d224f32e377b6d2dc2e84e55a94429fd4fb3 100644 --- a/protocol/http/handshake.go +++ b/protocol/http/handshake.go @@ -75,15 +75,9 @@ metadata.Destination = destination return handler.NewConnection(ctx, requestConn, metadata) } - keepAlive := strings.TrimSpace(strings.ToLower(request.Header.Get("Proxy-Connection"))) == "keep-alive" - - "encoding/base64" +package http std_bufio "bufio" "encoding/base64" - "context" - request.Host = host - } - request.RequestURI = "" removeHopByHopHeaders(request.Header)