CouchDB: return 200 OK on DELETE requests
26 May 2008
12:01
as Diff
| 1 | Index: src/couchdb/couch_httpd.erl |
|---|---|
| 2 | =================================================================== |
| 3 | --- src/couchdb/couch_httpd.erl (revision 660166) |
| 4 | +++ src/couchdb/couch_httpd.erl (working copy) |
| 5 | @@ -164,7 +164,7 @@ |
| 6 | |
| 7 | handle_db_request(Req, 'DELETE', {DbName, _Db, []}) -> |
| 8 | ok = couch_server:delete(DbName), |
| 9 | - send_json(Req, 202, {obj, [ |
| 10 | + send_json(Req, 200, {obj, [ |
| 11 | {ok, true} |
| 12 | ]}); |
| 13 | |
| 14 | @@ -451,7 +451,7 @@ |
| 15 | throw({bad_request, "Document rev and etag have different values"}) |
| 16 | end, |
| 17 | {ok, NewRev} = couch_db:delete_doc(Db, DocId, [RevToDelete]), |
| 18 | - send_json(Req, 202, {obj, [ |
| 19 | + send_json(Req, 200, {obj, [ |
| 20 | {ok, true}, |
| 21 | {id, DocId}, |
| 22 | {rev, NewRev} |
Comments
No comments so far.
