Fix another instance of #117
This commit is contained in:
parent
a7700f9805
commit
78e203a2b9
@ -382,8 +382,8 @@ class Application(object):
|
|||||||
|
|
||||||
if item:
|
if item:
|
||||||
# Evolution bug workaround
|
# Evolution bug workaround
|
||||||
etag = environ.get("HTTP_IF_MATCH", item.etag).replace("\\", "")
|
if_match = environ.get("HTTP_IF_MATCH", "*").replace("\\", "")
|
||||||
if etag == item.etag:
|
if if_match in ("*", item.etag):
|
||||||
# No ETag precondition or precondition verified, delete item
|
# No ETag precondition or precondition verified, delete item
|
||||||
answer = xmlutils.delete(environ["PATH_INFO"], collection)
|
answer = xmlutils.delete(environ["PATH_INFO"], collection)
|
||||||
return client.OK, {}, answer
|
return client.OK, {}, answer
|
||||||
|
Loading…
Reference in New Issue
Block a user