From 8550f10d8813fbb6052aeaa07b111889e629b674 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Fri, 14 May 2021 23:10:17 +0200 Subject: [PATCH] allow svg to be gzipped --- owrx/controllers/assets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owrx/controllers/assets.py b/owrx/controllers/assets.py index 80f2c673..ca3e7f90 100644 --- a/owrx/controllers/assets.py +++ b/owrx/controllers/assets.py @@ -26,7 +26,7 @@ class GzipMixin(object): super().send_response(content, code, headers=headers, content_type=content_type, *args, **kwargs) def zipable(self, content_type): - types = ["application/javascript", "text/css", "text/html"] + types = ["application/javascript", "text/css", "text/html", "image/svg+xml"] return content_type in types def gzip(self, content):