Set headers to None to exclude specific default headers #1662
Unanswered
GeekDuanLian
asked this question in
Ideas
Replies: 1 comment 1 reply
-
I'm not convinced if we'd want to support this usage or not. (?) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just like requests
s = Session(headers={'authorization': 'xxx'})
But you want to visit an external website, the authorization cannot be leaked
s.get('xxx', headers={'authorization': None})
This way to exclude the default headers
Beta Was this translation helpful? Give feedback.
All reactions