Skip to content

follow_redirects dropping Bearer token header #3291

Discussion options

You must be logged in to vote

Perhaps you're seeing a redirect to a different host/scheme?

Auth headers are maintained, unless the origin changes.

(Perhaps a useful pointer for some more detailed "redirect behaviours" docs?)

Refs...

def _build_redirect_request(self, request: Request, response: Response) -> Request:

def _redirect_headers(self, request: Request, url: URL, method: str) -> Headers:

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by tomchristie
Comment options

You must be logged in to vote
3 replies
@tomchristie
Comment options

@ashic
Comment options

@tomchristie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants