Commits

Josh VanderLinden committed 629875d

Fixing content type approach

Comments (0)

Files changed (1)

 import os
 import re
 
-from bottle import Response, route, run, view
+from bottle import response, route, run, view
 
 
 __version__ = '0.3'
            '-o', '-']
     pipe = Popen(cmd, stdout=PIPE)
     (img, _) = pipe.communicate()
-    return Response(img, headers={
-        'Content-Type': 'image/png',
-    })
+
+    response.content_type = 'image/png'
+    return img
 
 
 @route('/license/')