calcurse-caldav: print HTTP status codes in debug mode
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
parent
ddc3fda5f1
commit
dd4d444c0c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user