diff options
author | Astound <kirito@disroot.org> | 2024-03-11 09:47:35 +0800 |
---|---|---|
committer | Astound <kirito@disroot.org> | 2024-03-11 09:47:35 +0800 |
commit | b91d53dc6f2657ab0c190ccd1606d50df00dff84 (patch) | |
tree | 65b9e2467ffd4718470e195027e74fe648f3de96 /server.py | |
parent | cda4fd1f2670d48b44a4f0c1e67b2ca2a7437923 (diff) | |
download | yt-local-b91d53dc6f2657ab0c190ccd1606d50df00dff84.tar.lz yt-local-b91d53dc6f2657ab0c190ccd1606d50df00dff84.tar.xz yt-local-b91d53dc6f2657ab0c190ccd1606d50df00dff84.zip |
Use response.headers instead of response.getheaders()
response.getheaders() will be deprecated by urllib3.
Diffstat (limited to 'server.py')
-rw-r--r-- | server.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -84,7 +84,7 @@ def proxy_site(env, start_response, video=False): else: response, cleanup_func = util.fetch_url_response(url, send_headers) - response_headers = response.getheaders() + response_headers = response.headers if isinstance(response_headers, urllib3._collections.HTTPHeaderDict): response_headers = response_headers.items() if video: |