correct proxy
This commit is contained in:
parent
fcdc40497f
commit
7a5f3b6940
@ -50,7 +50,7 @@ if icecast_server is not None and stream_server is not None:
|
|||||||
|
|
||||||
def rewrite(current, provider):
|
def rewrite(current, provider):
|
||||||
proxy_req = proxies_req.get(provider)
|
proxy_req = proxies_req.get(provider)
|
||||||
proxy = proxies.get(provider)
|
proxy = proxies_raw.get(provider)
|
||||||
resp = requests.head(current, proxies=proxy_req)
|
resp = requests.head(current, proxies=proxy_req)
|
||||||
ctype = resp.headers.get("Content-Type")
|
ctype = resp.headers.get("Content-Type")
|
||||||
print(ctype)
|
print(ctype)
|
||||||
|
Loading…
Reference in New Issue
Block a user