[common] disable Authorization header injection from .netrc auth
(#6134, #6455)
This commit is contained in:
@@ -1004,6 +1004,12 @@ SSL_CIPHERS = {
|
||||
}
|
||||
|
||||
|
||||
# disable Basic Authorization header injection from .netrc data
|
||||
try:
|
||||
requests.sessions.get_netrc_auth = lambda _: None
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# detect brotli support
|
||||
try:
|
||||
BROTLI = urllib3.response.brotli is not None
|
||||
|
||||
Reference in New Issue
Block a user