mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #23404 from hvnsweeting/cherrypy-post-emptybody-fix
saltapi cherrypy: initialize var when POST body is empty
This commit is contained in:
commit
54b3bd43e4
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