mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-06 01:50:26 +08:00
增加对Www-Authenticate Header的修正,防止一些源站无法识别
This commit is contained in:
@@ -987,6 +987,9 @@ func (this *HTTPRequest) fixRequestHeader(header http.Header) {
|
||||
header.Del(k)
|
||||
k = strings.ReplaceAll(k, "-Websocket-", "-WebSocket-")
|
||||
header[k] = v
|
||||
} else if k == "Www-Authenticate" {
|
||||
header.Del(k)
|
||||
header["WWW-Authenticate"] = v
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user