diff options
author | Bram <cortex@worlddomination.be> | 2018-12-03 04:53:05 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2018-12-05 17:36:00 +0100 |
commit | 6f22e99ad5187f1c80717bfbe0d84d7dd12a2dba (patch) | |
tree | 81d9f0bcbe9ce63ac5a867c3ea1ed7e37534ef30 /contrib/caldav/calcurse-caldav.py | |
parent | 3f267d0473b1e34c858edac334e17bf48c0c407d (diff) | |
download | calcurse-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/calcurse-caldav.py')
-rwxr-xr-x | contrib/caldav/calcurse-caldav.py | 2 |
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)) |