diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-08-07 14:30:41 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-08-07 14:30:41 +0200 |
| commit | 88d43bf6770d60bf0feb5a5db1ac3e33de5cdbb9 (patch) | |
| tree | d3006da4d65d1b847e4803cd7145e9874ae34484 /addons/web/http.py | |
| parent | 1f726f78266ff6130f1ed701799ca969671a1dfc (diff) | |
[FIX] mimetype problem that made Firefox crash
bzr revid: nicolas.vanhoren@openerp.com-20130807123041-8tvf9u14xderh3hr
Diffstat (limited to 'addons/web/http.py')
| -rw-r--r-- | addons/web/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
