calcurse-caldav: print HTTP status codes in debug mode

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer 2018-08-21 05:51:29 +02:00
parent ddc3fda5f1
commit dd4d444c0c

View File

@ -208,6 +208,7 @@ def remote_query(conn, cmd, path, additional_headers, body):
return (None, None)
if debug:
print("< Status: {} ({})".format(resp.status, resp.reason))
print("< Headers: " + repr(resp))
for line in body.splitlines():
print("< " + line)