Create new class to handle HTTP requests

Some more clean-up
This commit is contained in:
Tim 2015-07-05 15:59:57 +02:00
parent e1e3659eb3
commit 9b7f529d02
6 changed files with 456 additions and 545 deletions

View file

@ -547,8 +547,8 @@ class WebInterface(object):
try:
pms_connect = pmsconnect.PmsConnect()
result = pms_connect.get_image(img, width, height)
cherrypy.response.headers['Content-type'] = result[0]
return result[1]
cherrypy.response.headers['Content-type'] = result[1]
return result[0]
except:
logger.warn('Image proxy queried but errors occured.')
if fallback == 'poster':