Sfoglia il codice sorgente

change GET response from GONE to NOT FOUND when item is not found

deronnax 11 anni fa
parent
commit
5b8333c2b0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      radicale/__init__.py

+ 1 - 1
radicale/__init__.py

@@ -423,7 +423,7 @@ class Application(object):
                     collection.tag, collection.headers, items)
                 etag = item.etag
             else:
-                return client.GONE, {}, None
+                return client.NOT_FOUND, {}, None
         else:
             # Create the collection if it does not exist
             if not collection.exists: