Skip to content

Commit

Permalink
changed auth header name
Browse files Browse the repository at this point in the history
  • Loading branch information
elraphty committed Mar 7, 2024
1 parent 4ecf9f5 commit 3ff85d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func PubKeyContext(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
token := r.URL.Query().Get("token")
if token == "" {
token = r.Header.Get("token")
token = r.Header.Get("x-jwt")
}

if token == "" {
Expand Down

0 comments on commit 3ff85d6

Please sign in to comment.