allow svg to be gzipped

This commit is contained in:
Jakob Ketterl 2021-05-14 23:10:17 +02:00
parent 3b8961c8c6
commit 8550f10d88

View File

@ -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):