Return 200 instead of 204 status for DELETE requests (closes #802)
This commit is contained in:
parent
c3ce8fde38
commit
ca5c0483b0
@ -291,7 +291,7 @@ class Application(object):
|
|||||||
if etag == item.etag:
|
if etag == 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.NO_CONTENT, {}, answer
|
return client.OK, {}, answer
|
||||||
|
|
||||||
# No item or ETag precondition not verified, do not delete item
|
# No item or ETag precondition not verified, do not delete item
|
||||||
return client.PRECONDITION_FAILED, {}, None
|
return client.PRECONDITION_FAILED, {}, None
|
||||||
|
Loading…
Reference in New Issue
Block a user