summaryrefslogtreecommitdiffstats
path: root/contrib/caldav
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/caldav')
-rwxr-xr-xcontrib/caldav/calcurse-caldav.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py
index e02a905..3bea80b 100755
--- a/contrib/caldav/calcurse-caldav.py
+++ b/contrib/caldav/calcurse-caldav.py
@@ -192,7 +192,10 @@ def push_object(conn, objhash):
if not headers:
return None
- etag = [header[1] for header in headers if header[0] == 'ETag'][0]
+ etag = None
+ headerdict = dict((key.lower(), value) for key, value in headers)
+ if 'etag' in headerdict:
+ etag = headerdict['etag']
while not etag:
hrefmap = get_hrefmap(conn, objhash)
if len(hrefmap.keys()) > 0: