mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 04:02:32 +01:00
[common] disable Authorization header injection from .netrc auth
(#6134, #6455)
This commit is contained in:
parent
a3dbc58172
commit
0a72a5009c
@ -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
|
# detect brotli support
|
||||||
try:
|
try:
|
||||||
BROTLI = urllib3.response.brotli is not None
|
BROTLI = urllib3.response.brotli is not None
|
||||||
|
Loading…
Reference in New Issue
Block a user