1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-01 06:55:25 -05:00

debug issue with browser forwarder http header name checking

This commit is contained in:
Shelikhoo
2021-05-01 16:07:03 +01:00
parent b3957e029c
commit fd203a2b54

View File

@@ -48,7 +48,7 @@ func (f *Forwarder) DialWebsocket(url string, header http.Header) (io.ReadWriteC
protocolHeaderValue := ""
unsupportedHeader := false
for k, v := range header {
if k == "Sec-WebSocket-Protocol" {
if k == "Sec-Websocket-Protocol" {
protocolHeader = true
protocolHeaderValue = v[0]
} else {