mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-01-05 16:20:23 +01:00
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)
|
||||
|
||||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue