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:
parent
1c30a5c46d
commit
9a381cd333
@ -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')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user