aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/networking/_urllib.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2024-03-11 00:48:47 +0530
committerGitHub <noreply@github.com>2024-03-11 00:48:47 +0530
commit47ab66db0f083a76c7fba0f6e136b21dd5a93e3b (patch)
treee2ee1e3234ce9c2de2cd52fdeb916de3d98b4259 /yt_dlp/networking/_urllib.py
parent0abf2f1f153ab47990edbeee3477dc55f74c7f89 (diff)
[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 <bashonly@protonmail.com> Co-authored-by: Arthurszzz <minecraftgamerarthur@gmail.com> Co-authored-by: Simon Sawicki <accounts@grub4k.xyz> Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Diffstat (limited to 'yt_dlp/networking/_urllib.py')
-rw-r--r--yt_dlp/networking/_urllib.py2
1 files changed, 1 insertions, 1 deletions
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: