From e2b6bc300827d1c260544d048b8abe041d599eb7 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Fri, 8 Apr 2016 14:41:05 +0200 Subject: [PATCH] Remove old workaround --- radicale/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index 6e13cd2d..2d5233bf 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -369,8 +369,7 @@ class Application(object): item = collection.items.get(name) if item: - # Evolution bug workaround - if_match = environ.get("HTTP_IF_MATCH", "*").replace("\\", "") + if_match = environ.get("HTTP_IF_MATCH", "*") if if_match in ("*", item.etag): # No ETag precondition or precondition verified, delete item answer = xmlutils.delete(environ["PATH_INFO"], collection) @@ -548,8 +547,7 @@ class Application(object): item_name = xmlutils.name_from_path(environ["PATH_INFO"], collection) item = collection.items.get(item_name) - # Evolution bug workaround - etag = environ.get("HTTP_IF_MATCH", "").replace("\\", "") + etag = environ.get("HTTP_IF_MATCH", "") match = environ.get("HTTP_IF_NONE_MATCH", "") == "*" if (not item and not etag) or ( item and ((etag or item.etag) == item.etag) and not match):