소스 검색

Merge pull request #260 from deronnax/not_found_instead_of_gone

change GET response from GONE to NOT FOUND when item is not found
Guillaume Ayoub 10 년 전
부모
커밋
ce9fd74d98
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      radicale/__init__.py

+ 1 - 1
radicale/__init__.py

@@ -424,7 +424,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: