fix: Fix bugs in the bedrock model name escaping logic (#2663)

Co-authored-by: 澄潭 <zty98751@alibaba-inc.com>
This commit is contained in:
Kent Dong
2025-08-15 17:40:13 +08:00
committed by GitHub
parent be603af461
commit 24dca0455e
2 changed files with 14 additions and 16 deletions

View File

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