From 88d43bf6770d60bf0feb5a5db1ac3e33de5cdbb9 Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Wed, 7 Aug 2013 14:30:41 +0200 Subject: [PATCH] [FIX] mimetype problem that made Firefox crash bzr revid: nicolas.vanhoren@openerp.com-20130807123041-8tvf9u14xderh3hr --- addons/web/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/http.py b/addons/web/http.py index 8193b21e108..ee1ed979ea1 100644 --- a/addons/web/http.py +++ b/addons/web/http.py @@ -947,7 +947,7 @@ class Root(object): if httprequest.args.get('jsonp'): return JsonRequest(httprequest) - if httprequest.headers["Content-Type"] == "application/json": + if httprequest.mimetype == "application/json": return JsonRequest(httprequest) else: return HttpRequest(httprequest)