summaryrefslogtreecommitdiff
path: root/share/www/script/couch.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/www/script/couch.js')
-rw-r--r--share/www/script/couch.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/www/script/couch.js b/share/www/script/couch.js
index 847467d4..947a5137 100644
--- a/share/www/script/couch.js
+++ b/share/www/script/couch.js
@@ -33,7 +33,7 @@ function CouchDB(name) {
if (req.status == 404)
return false;
var result = JSON.parse(req.responseText);
- if (req.status != 202)
+ if (req.status != 200)
throw result;
return result;
}
@@ -73,7 +73,7 @@ function CouchDB(name) {
this.deleteDoc = function(doc) {
var req = request("DELETE", this.uri + encodeURIComponent(doc._id) + "?rev=" + doc._rev);
var result = JSON.parse(req.responseText);
- if (req.status != 202)
+ if (req.status != 200)
throw result;
doc._rev = result.rev; //record rev in input document
doc._deleted = true;