Return 200 instead of 204 status for DELETE requests (closes #802)

This commit is contained in:
Guillaume Ayoub 2012-04-18 14:00:20 +02:00
parent c3ce8fde38
commit ca5c0483b0

View File

@ -291,7 +291,7 @@ class Application(object):
if etag == item.etag:
# No ETag precondition or precondition verified, delete item
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
return client.PRECONDITION_FAILED, {}, None