From 8efc686f83888b3b82ada89f3a4bbf738554166f Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Wed, 12 May 2021 10:04:13 +0200 Subject: [PATCH] remove content type from rewrite --- stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream.py b/stream.py index 2067826..cd429fa 100755 --- a/stream.py +++ b/stream.py @@ -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: