mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
initialize var when POST body is empty
or lowdata_fmt will raise exception
This commit is contained in:
parent
aa5fb0aa46
commit
f85f8f954c
@ -537,6 +537,7 @@ def hypermedia_in():
|
||||
if (cherrypy.request.method.upper() == 'POST'
|
||||
and cherrypy.request.headers.get('Content-Length', '0') == '0'):
|
||||
cherrypy.request.process_request_body = False
|
||||
cherrypy.request.unserialized_data = None
|
||||
|
||||
cherrypy.request.body.processors.clear()
|
||||
cherrypy.request.body.default_proc = cherrypy.HTTPError(
|
||||
|
Loading…
Reference in New Issue
Block a user