From ca5c0483b03878e90a3f07c9c8f6c27ab5e0a946 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Wed, 18 Apr 2012 14:00:20 +0200 Subject: [PATCH] Return 200 instead of 204 status for DELETE requests (closes #802) --- radicale/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index 2b5a8a0..73996b2 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -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