mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-25 21:59:04 +01:00
Better if placement
This commit is contained in:
parent
a4cad2af1c
commit
20832d0cdc
1 changed files with 2 additions and 3 deletions
|
@ -317,6 +317,8 @@ class RequestsRH(RequestHandler, InstanceStoreMixin):
|
|||
|
||||
headers = self._merge_headers(request.headers)
|
||||
add_accept_encoding_header(headers, SUPPORTED_ENCODINGS)
|
||||
if request.extensions.get('keep_header_casing'):
|
||||
headers = headers.sensitive()
|
||||
|
||||
max_redirects_exceeded = False
|
||||
|
||||
|
@ -325,9 +327,6 @@ class RequestsRH(RequestHandler, InstanceStoreMixin):
|
|||
legacy_ssl_support=request.extensions.get('legacy_ssl'),
|
||||
)
|
||||
|
||||
if request.extensions.get('keep_header_casing'):
|
||||
headers = headers.sensitive()
|
||||
|
||||
try:
|
||||
requests_res = session.request(
|
||||
method=request.method,
|
||||
|
|
Loading…
Reference in a new issue