From ec8193a923a6b7571752ae1ccad8fe7107848435 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 11 Feb 2025 15:42:27 +0000 Subject: [PATCH] mirrors: Don't send any Content-Type headers Signed-off-by: Michael Tremer --- src/web/mirrors.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/web/mirrors.py b/src/web/mirrors.py index 7a533e1a..ff036414 100644 --- a/src/web/mirrors.py +++ b/src/web/mirrors.py @@ -133,6 +133,10 @@ class DownloadsHandler(base.BaseHandler): As a last resort, we will try to serve the file locally. """ + def prepare(self): + # Don't send any Content-Type header + self.clear_header("Content-Type") + @base.ratelimit(limit=100, minutes=60, key="downloads") async def get(self, path): # Check if the file exists -- 2.47.2