mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
debug issue with browser forwarder http header name checking
This commit is contained in:
parent
b3957e029c
commit
fd203a2b54
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user