allow svg to be gzipped

This commit is contained in:
Jakob Ketterl 2021-05-14 23:10:17 +02:00
parent 3b8961c8c6
commit 8550f10d88
1 changed files with 1 additions and 1 deletions

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