Strip empty lines from content

This commit is contained in:
Guillaume Ayoub 2016-08-05 02:25:15 +02:00
parent 26e1c9ba89
commit 8682504c6e

View File

@ -306,7 +306,7 @@ class Application:
environ["wsgi.input"].read(content_length), environ)
except socket.timeout:
return response(client.REQUEST_TIMEOUT)
self.logger.debug("Request content:\n%s" % content)
self.logger.debug("Request content:\n%s" % content.strip())
else:
content = None