mirror of
https://github.com/alibaba/higress.git
synced 2026-05-22 11:47:27 +08:00
fix: Fix bugs in the bedrock model name escaping logic (#2663)
Co-authored-by: 澄潭 <zty98751@alibaba-inc.com>
This commit is contained in:
@@ -167,11 +167,6 @@ func SetOriginalRequestAuth(auth string) {
|
||||
}
|
||||
|
||||
func OverwriteRequestAuthorizationHeader(headers http.Header, credential string) {
|
||||
if exist := headers.Get(HeaderOriginalAuth); exist == "" {
|
||||
if originAuth := headers.Get(HeaderAuthorization); originAuth != "" {
|
||||
headers.Set(HeaderOriginalAuth, originAuth)
|
||||
}
|
||||
}
|
||||
headers.Set(HeaderAuthorization, credential)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user