1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-11 18:30:43 +00: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
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

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 {