Skip to content

Commit

Permalink
Set Authorization header instead of append. Fixes issue where proxy i…
Browse files Browse the repository at this point in the history
…s sitting behind app which already has auth
  • Loading branch information
nickschuch committed Feb 23, 2022
1 parent cdc2fcc commit 47b399c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func Run(params RunParams) error {
d(r) // call default director

if basicAuthHeader != "" {
r.Header.Add("Authorization", basicAuthHeader)
r.Header.Set("Authorization", basicAuthHeader)
}

if params.TrimPathPrefix != "" {
Expand Down

0 comments on commit 47b399c

Please sign in to comment.