[FIX][NotSure] CherryPy merges the GET and POST args into a single params dict, do the same with Werkzeug request data

bzr revid: xmo@openerp.com-20110902104429-xn3si286s8x5s64f
This commit is contained in:
Xavier Morel 2011-09-02 12:44:29 +02:00
parent f54d29ddcc
commit 0e646fc6ff
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class HttpRequest(WebRequest):
""" Regular GET/POST request
"""
def dispatch(self, controller, method):
self.init(self.httprequest.args)
self.init(dict(self.httprequest.args, **self.httprequest.form))
akw = {}
for key, value in self.httprequest.args.iteritems():
if isinstance(value, basestring) and len(value) < 1024: