فهرست منبع

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

deronnax 11 سال پیش
والد
کامیت
5b8333c2b0
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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: