From ab3ec1ef6c25f118b5e225e9d68ae9d360cc2109 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Tue, 9 Sep 2014 10:11:33 +0200 Subject: [PATCH] [IMP] openerp/http.py: accept mimetype application/json-rpc for json-rpc calls --- openerp/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/http.py b/openerp/http.py index a67b13b0bd5..31a7f5b7a3e 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -1278,7 +1278,7 @@ class Root(object): # deduce type of request if httprequest.args.get('jsonp'): return JsonRequest(httprequest) - if httprequest.mimetype == "application/json": + if httprequest.mimetype in ("application/json", "application/json-rpc"): return JsonRequest(httprequest) else: return HttpRequest(httprequest)