From ba7c0c7135bebedbd8aae327535729e8756d7467 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Sat, 16 Apr 2011 18:31:16 +0000 Subject: 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 --- share/www/script/jquery.couch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/www/script/jquery.couch.js') 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({ -- cgit v1.2.3