mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
initialize var when POST body is empty
or lowdata_fmt will raise exception
This commit is contained in:
parent
aa5fb0aa46
commit
f85f8f954c
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue