[IMP] openerp/http.py: accept mimetype application/json-rpc for json-rpc calls
This commit is contained in:
parent
c5fbb47abf
commit
ab3ec1ef6c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue