]> git.ipfire.org Git - pbs.git/commitdiff
mirrors: Don't send body in error responses
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Feb 2025 15:39:00 +0000 (15:39 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Feb 2025 15:39:00 +0000 (15:39 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/mirrors.py

index 219515a77c49603e7d093efda951397e65ecc7cc..4a334bb1f2ad017327d9fc9eba23b36aaf615506 100644 (file)
@@ -159,3 +159,9 @@ class DownloadsHandler(base.BaseHandler):
                url = self.backend.path_to_url(path, mirrored=False)
 
                self.redirect(url)
+
+       async def write_error(self, *args, **kwargs):
+               """
+                       Don't send any body in error responses
+               """
+               pass