From 0edf03c8c1b31a0ce6b57a09ca07a42f11ab603b Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Wed, 16 Oct 2019 23:15:17 +0200 Subject: [PATCH] Tweak media proxying --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 7411b65..5b7868c 100644 --- a/app.py +++ b/app.py @@ -289,7 +289,7 @@ def proxy(scheme: str, url: str) -> Any: if k.lower() not in ["host", "cookie", "", "x-forwarded-for", "x-real-ip"] and not k.lower().startswith("broxy-") } - req_headers["Host"] = urlparse(url).netloc + # req_headers["Host"] = urlparse(url).netloc resp = requests.get(url, stream=True, headers=req_headers) app.logger.info(f"proxied req {url} {req_headers}: {resp!r}")