Commit 7c46aafd authored by Oleksiy Mishchenko's avatar Oleksiy Mishchenko
Browse files

HTTP server: Do not decode empty entity body

Reviewed-by: imsnah
parent d50b3059
......@@ -551,7 +551,10 @@ class _HttpConnectionHandler(object):
data = self.rfile.read(content_length)
# TODO: Content-type, error handling
self.request_post_data = HTTPJsonConverter().Decode(data)
if data:
self.request_post_data = HTTPJsonConverter().Decode(data)
else:
self.request_post_data = None
logging.debug("HTTP POST data: %s", self.request_post_data)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment