We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ca05f7 commit 6872adaCopy full SHA for 6872ada
v2/apiserver/internal/api/rest/token_auth_filter.go
@@ -111,7 +111,8 @@ func (t *tokenAuthFilter) Decorate(handle http.HandlerFunc) http.HandlerFunc {
111
" ",
112
2,
113
)
114
- if len(headerValueParts) != 2 || headerValueParts[0] != "Bearer" {
+ if len(headerValueParts) != 2 ||
115
+ strings.ToLower(headerValueParts[0]) != "bearer" {
116
t.writeResponse(
117
w,
118
http.StatusUnauthorized,
0 commit comments