Cut a long line
This commit is contained in:
parent
6121bc882a
commit
58c6fe399c
@ -186,10 +186,11 @@ class Application(object):
|
|||||||
|
|
||||||
# Set content length
|
# Set content length
|
||||||
if answer:
|
if answer:
|
||||||
# decoding the answer for logging purposes on Python 3
|
# Decode the answer for logging purposes on Python 3
|
||||||
log_answer = answer
|
log_answer = answer
|
||||||
if not isinstance(log_answer, str):
|
if not isinstance(log_answer, str):
|
||||||
log_answer = log_answer.decode(config.get("encoding", "request"))
|
log_answer = log_answer.decode(
|
||||||
|
config.get("encoding", "request"))
|
||||||
log.LOGGER.debug("Response content:\n%s" % log_answer)
|
log.LOGGER.debug("Response content:\n%s" % log_answer)
|
||||||
headers["Content-Length"] = "%i" % len(answer)
|
headers["Content-Length"] = "%i" % len(answer)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user