--
This commit is contained in:
@@ -137,7 +137,7 @@ class Middleware:
|
|||||||
elif "image/svg+xml" in content_type:
|
elif "image/svg+xml" in content_type:
|
||||||
try:
|
try:
|
||||||
options = scour.generateDefaultOptions()
|
options = scour.generateDefaultOptions()
|
||||||
options.newlines = True
|
options.newlines = False
|
||||||
options.shorten_ids = True
|
options.shorten_ids = True
|
||||||
options.strip_comments = True
|
options.strip_comments = True
|
||||||
response.body = scour.scourString(response.body.decode("utf-8", errors="replace"), options).encode("utf-8")
|
response.body = scour.scourString(response.body.decode("utf-8", errors="replace"), options).encode("utf-8")
|
||||||
|
|||||||
Reference in New Issue
Block a user