[IMP] openerp/http.py: accept mimetype application/json-rpc for json-rpc calls

This commit is contained in:
Raphael Collet 2014-09-09 10:11:33 +02:00
parent c5fbb47abf
commit ab3ec1ef6c
1 changed files with 1 additions and 1 deletions

View File

@ -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)