From 6f22e99ad5187f1c80717bfbe0d84d7dd12a2dba Mon Sep 17 00:00:00 2001 From: Bram Date: Mon, 3 Dec 2018 04:53:05 +0100 Subject: calcurse-caldav: fix authentication in debug mode Objects are reference in python, ".pop" was modifying the original dictionary and thus breaking authentication by removing auth headers. Signed-off-by: Lukas Fleischer --- contrib/caldav/calcurse-caldav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/caldav') diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py index b8d2582..072eb87 100755 --- a/contrib/caldav/calcurse-caldav.py +++ b/contrib/caldav/calcurse-caldav.py @@ -220,7 +220,7 @@ def remote_query(conn, cmd, path, additional_headers, body): if debug: print("> {} {}".format(cmd, path)) - headers_sanitized = headers + headers_sanitized = headers.copy() if not debug_raw: headers_sanitized.pop('Authorization', None) print("> Headers: " + repr(headers_sanitized)) -- cgit v1.2.3-70-g09d2