From 47ab66db0f083a76c7fba0f6e136b21dd5a93e3b Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 11 Mar 2024 00:48:47 +0530 Subject: [docs] Misc Cleanup (#8977) Closes #8355, #8944 Authored by: bashonly, Grub4k, Arthurszzz, seproDev, pukkandan Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com> Co-authored-by: bashonly Co-authored-by: Arthurszzz Co-authored-by: Simon Sawicki Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> --- yt_dlp/networking/_urllib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yt_dlp/networking/_urllib.py') diff --git a/yt_dlp/networking/_urllib.py b/yt_dlp/networking/_urllib.py index 68bab2b08..cb4dae381 100644 --- a/yt_dlp/networking/_urllib.py +++ b/yt_dlp/networking/_urllib.py @@ -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: -- cgit v1.2.3