correct proxy

This commit is contained in:
Roy Olav Purser 2021-05-09 11:39:37 +02:00
parent fcdc40497f
commit 7a5f3b6940
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -50,7 +50,7 @@ if icecast_server is not None and stream_server is not None:
def rewrite(current, provider):
proxy_req = proxies_req.get(provider)
proxy = proxies.get(provider)
proxy = proxies_raw.get(provider)
resp = requests.head(current, proxies=proxy_req)
ctype = resp.headers.get("Content-Type")
print(ctype)