From 78e203a2b9a4c5ce605abe20f43efcc69eedcb74 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sun, 22 Mar 2015 12:25:54 +0100 Subject: [PATCH] Fix another instance of #117 --- radicale/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index 55329e5..ad8fbba 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -382,8 +382,8 @@ class Application(object): if item: # Evolution bug workaround - etag = environ.get("HTTP_IF_MATCH", item.etag).replace("\\", "") - if etag == item.etag: + if_match = environ.get("HTTP_IF_MATCH", "*").replace("\\", "") + if if_match in ("*", item.etag): # No ETag precondition or precondition verified, delete item answer = xmlutils.delete(environ["PATH_INFO"], collection) return client.OK, {}, answer