From cff6c2b43be8bb67460c1d609df8d2aefc0ece6c Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Fri, 22 Jun 2012 12:29:49 +0200 Subject: [PATCH] Return 204 response when an item is modified --- radicale/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index 8abf130..47c649a 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -440,7 +440,7 @@ class Application(object): # Case 2: Item and ETag precondition verified: Modify item # Case 3: Item and no Etag precondition: Force modifying item xmlutils.put(environ["PATH_INFO"], content, collection) - status = client.CREATED + status = client.NO_CONTENT if item else client.CREATED # Try to return the etag in the header # If the added item does't have the same name as the one given by # the client, then there's no obvious way to generate an etag, we