summaryrefslogtreecommitdiffstats
path: root/contrib/caldav
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2018-08-21 05:51:29 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2018-08-21 05:51:35 +0200
commitdd4d444c0ccf0f1e16e2eb550b8e78dc557906f6 (patch)
tree5e9ddc1fd60846a49d313823ee839748d035d172 /contrib/caldav
parentddc3fda5f1ecc9cb7adeb616df820d9e629ac5b2 (diff)
downloadcalcurse-dd4d444c0ccf0f1e16e2eb550b8e78dc557906f6.tar.gz
calcurse-dd4d444c0ccf0f1e16e2eb550b8e78dc557906f6.zip
calcurse-caldav: print HTTP status codes in debug mode
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'contrib/caldav')
-rwxr-xr-xcontrib/caldav/calcurse-caldav.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py
index 2c5757e..c880c3e 100755
--- a/contrib/caldav/calcurse-caldav.py
+++ b/contrib/caldav/calcurse-caldav.py
@@ -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)