1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

Fixed bug on service image resolver, (mimetype is now content_type)

This commit is contained in:
Adolfo Gómez García 2014-09-08 15:21:08 +02:00
parent 1c30a5c46d
commit 9a381cd333

View File

@ -335,7 +335,7 @@ def transportIcon(request, idTrans):
def serviceImage(request, idImage): def serviceImage(request, idImage):
try: try:
icon = Transport.objects.get(pk=idImage).getInstance().icon(False) icon = Transport.objects.get(pk=idImage).getInstance().icon(False)
return HttpResponse(icon, mimetype='image/png') return HttpResponse(icon, content_type='image/png')
except Exception: except Exception:
return HttpResponseRedirect('/static/img/unknown.png') return HttpResponseRedirect('/static/img/unknown.png')