projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5fbb47
)
[IMP] openerp/http.py: accept mimetype application/json-rpc for json-rpc calls
author
Raphael Collet
<rco@openerp.com>
Tue, 9 Sep 2014 08:11:33 +0000
(10:11 +0200)
committer
Raphael Collet
<rco@openerp.com>
Tue, 9 Sep 2014 08:11:33 +0000
(10:11 +0200)
openerp/http.py
patch
|
blob
|
history
diff --git
a/openerp/http.py
b/openerp/http.py
index
a67b13b
..
31a7f5b
100644
(file)
--- 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)