aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/caldav
diff options
context:
space:
mode:
authorBram <cortex@worlddomination.be>2018-12-03 04:53:05 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2018-12-05 17:36:00 +0100
commit6f22e99ad5187f1c80717bfbe0d84d7dd12a2dba (patch)
tree81d9f0bcbe9ce63ac5a867c3ea1ed7e37534ef30 /contrib/caldav
parent3f267d0473b1e34c858edac334e17bf48c0c407d (diff)
downloadcalcurse-6f22e99ad5187f1c80717bfbe0d84d7dd12a2dba.tar.gz
calcurse-6f22e99ad5187f1c80717bfbe0d84d7dd12a2dba.zip
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 <lfleischer@calcurse.org>
Diffstat (limited to 'contrib/caldav')
-rwxr-xr-xcontrib/caldav/calcurse-caldav.py2
1 files changed, 1 insertions, 1 deletions
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))