From 9a381cd3338adbb11e46afe7a98f351d03fd86e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 8 Sep 2014 15:21:08 +0200 Subject: [PATCH] Fixed bug on service image resolver, (mimetype is now content_type) --- server/src/uds/web/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/uds/web/views.py b/server/src/uds/web/views.py index 9c6be7599..da0e70cab 100644 --- a/server/src/uds/web/views.py +++ b/server/src/uds/web/views.py @@ -335,7 +335,7 @@ def transportIcon(request, idTrans): def serviceImage(request, idImage): try: icon = Transport.objects.get(pk=idImage).getInstance().icon(False) - return HttpResponse(icon, mimetype='image/png') + return HttpResponse(icon, content_type='image/png') except Exception: return HttpResponseRedirect('/static/img/unknown.png')