mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Cut a long line
This commit is contained in:
parent
6121bc882a
commit
58c6fe399c
1 changed files with 3 additions and 2 deletions
|
@ -186,10 +186,11 @@ class Application(object):
|
|||
|
||||
# Set content length
|
||||
if answer:
|
||||
# decoding the answer for logging purposes on Python 3
|
||||
# Decode the answer for logging purposes on Python 3
|
||||
log_answer = answer
|
||||
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)
|
||||
headers["Content-Length"] = "%i" % len(answer)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue