summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2011-04-16 18:31:16 +0000
committerJan Lehnardt <jan@apache.org>2011-04-16 18:31:16 +0000
commitba7c0c7135bebedbd8aae327535729e8756d7467 (patch)
tree071519719a4b9db91a4c122fb26493f718bc5cd7 /share
parent724a2abb9600b2d6c5bab84ff8167fa5626b4857 (diff)
Don't expect a 202 repsponse code when cancelling a replication.
Closes COUCHDB-1016 Patch by Felix Hummel. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1094025 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r--share/www/script/jquery.couch.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/www/script/jquery.couch.js b/share/www/script/jquery.couch.js
index a606c875..f3b78189 100644
--- a/share/www/script/jquery.couch.js
+++ b/share/www/script/jquery.couch.js
@@ -572,7 +572,7 @@
replicate: function(source, target, ajaxOptions, repOpts) {
repOpts = $.extend({source: source, target: target}, repOpts);
- if (repOpts.continuous) {
+ if (repOpts.continuous && !repOpts.cancel) {
ajaxOptions.successStatus = 202;
}
ajax({