mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-09-16 07:42:07 +00:00
[docs] Misc Cleanup (#8977)
Closes #8355, #8944 Authored by: bashonly, Grub4k, Arthurszzz, seproDev, pukkandan Co-authored-by: sepro <[email protected]> Co-authored-by: bashonly <[email protected]> Co-authored-by: Arthurszzz <[email protected]> Co-authored-by: Simon Sawicki <[email protected]> Co-authored-by: bashonly <[email protected]>
This commit is contained in:
co-authored by
sepro
bashonly
Arthurszzz
Simon Sawicki
bashonly
parent
0abf2f1f15
commit
47ab66db0f
@@ -167,7 +167,7 @@ class HTTPHandler(urllib.request.AbstractHTTPHandler):
|
||||
if 300 <= resp.code < 400:
|
||||
location = resp.headers.get('Location')
|
||||
if location:
|
||||
# As of RFC 2616 default charset is iso-8859-1 that is respected by python 3
|
||||
# As of RFC 2616 default charset is iso-8859-1 that is respected by Python 3
|
||||
location = location.encode('iso-8859-1').decode()
|
||||
location_escaped = normalize_url(location)
|
||||
if location != location_escaped:
|
||||
|
||||
Reference in New Issue
Block a user