Skip to content

Commit cb9ad02

Browse files
fix: explicitly set authHeaderName
1 parent 2cf0c26 commit cb9ad02

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

provider/anthropic.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ func (p *Anthropic) CreateInterceptor(w http.ResponseWriter, r *http.Request, tr
131131
authHeaderName = "Authorization"
132132
} else if apiKey := r.Header.Get("X-Api-Key"); apiKey != "" {
133133
cfg.Key = apiKey
134+
authHeaderName = "X-Api-Key"
134135
}
135136

136137
var interceptor intercept.Interceptor

0 commit comments

Comments
 (0)