Commit e1641cd0 authored by Thomas Tsiakalakis's avatar Thomas Tsiakalakis

fixed svg detection for init image

parent d2368836
......@@ -101,7 +101,7 @@ class Server(BaseHTTPRequestHandler):
return process(post_data, self)
def process(payload, http):
is_svg = http.headers['content-type'] == 'image/svg+xml'
is_svg = http == False or http.headers['content-type'] == 'image/svg+xml'
try:
image = render(payload, is_svg)
except OSError as e:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment