From dd4d444c0ccf0f1e16e2eb550b8e78dc557906f6 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 21 Aug 2018 05:51:29 +0200 Subject: calcurse-caldav: print HTTP status codes in debug mode Signed-off-by: Lukas Fleischer --- contrib/caldav/calcurse-caldav.py | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib/caldav') 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) -- cgit v1.2.3-70-g09d2