allow svg to be gzipped
This commit is contained in:
parent
3b8961c8c6
commit
8550f10d88
@ -26,7 +26,7 @@ class GzipMixin(object):
|
|||||||
super().send_response(content, code, headers=headers, content_type=content_type, *args, **kwargs)
|
super().send_response(content, code, headers=headers, content_type=content_type, *args, **kwargs)
|
||||||
|
|
||||||
def zipable(self, content_type):
|
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
|
return content_type in types
|
||||||
|
|
||||||
def gzip(self, content):
|
def gzip(self, content):
|
||||||
|
Loading…
Reference in New Issue
Block a user