Fixed /image when accept header not present #225

This commit is contained in:
Darrel
2015-06-01 11:10:33 -04:00
parent 9d946b5f0c
commit 811d0d5177
+3
View File
@@ -655,6 +655,9 @@ def image():
"""Returns a simple image of the type suggest by the Accept header."""
headers = get_headers()
if 'accept' not in headers:
return image_png() # Default media type to png
accept = headers['accept'].lower()
if 'image/webp' in accept: