remove content type from rewrite
This commit is contained in:
parent
9ea9b54e0f
commit
8efc686f83
@ -97,7 +97,7 @@ def upstream_type(current, proxy):
|
||||
resp = requests.head(current, proxies=proxy.req)
|
||||
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)
|
||||
ndata = None
|
||||
if resp.text is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user