Skip to content

Fix: Prevent Authorization header removal#275

Open
psyhomb wants to merge 1 commit intorakyll:masterfrom
psyhomb:master
Open

Fix: Prevent Authorization header removal#275
psyhomb wants to merge 1 commit intorakyll:masterfrom
psyhomb:master

Conversation

@psyhomb
Copy link

@psyhomb psyhomb commented Mar 24, 2022

The req.SetBasicAuth() function must be invoked after setting the request headers (line: req.Header = header). Otherwise, the Authorization header will be cleared before the request is sent, resulting in an HTTP 401 error from the upstream server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments