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

This commit is contained in:
刘祥超
2021-01-26 20:59:32 +08:00
parent 0fb7255a0b
commit 54ae493967

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