增加对Www-Authenticate Header的修正,防止一些源站无法识别

This commit is contained in:
GoEdgeLab
2021-01-26 20:59:32 +08:00
parent e85ce96ca5
commit be87792dfa

View File

@@ -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
}
}
}