remove content type from rewrite

This commit is contained in:
Roy Olav Purser 2021-05-12 10:04:13 +02:00
parent 9ea9b54e0f
commit 8efc686f83
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -97,7 +97,7 @@ def upstream_type(current, proxy):
resp = requests.head(current, proxies=proxy.req) resp = requests.head(current, proxies=proxy.req)
return resp.headers.get("Content-Type", "binary/octet-stream") return resp.headers.get("Content-Type", "binary/octet-stream")
def rewrite(current, provider, proxy, ctype): def rewrite(current, provider, proxy):
resp = requests.get(current, proxies=proxy.req) resp = requests.get(current, proxies=proxy.req)
ndata = None ndata = None
if resp.text is not None: if resp.text is not None: