mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Tell python we're done with contents
This commit is contained in:
parent
5cfa898ad7
commit
566fbdd777
@ -814,6 +814,7 @@ def urlencoded_processor(entity):
|
||||
body_bytes.seek(0)
|
||||
# Patch fp
|
||||
entity.fp = body_bytes
|
||||
del contents
|
||||
# First call out to CherryPy's default processor
|
||||
cherrypy._cpreqbody.process_urlencoded(entity)
|
||||
cherrypy._cpreqbody.process_urlencoded(entity)
|
||||
@ -836,6 +837,7 @@ def json_processor(entity):
|
||||
body = entity.fp.read(fp_out=contents)
|
||||
contents.seek(0)
|
||||
body = contents.read()
|
||||
del contents
|
||||
try:
|
||||
cherrypy.serving.request.unserialized_data = json.loads(body)
|
||||
except ValueError:
|
||||
|
Loading…
Reference in New Issue
Block a user