You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2014/04/01 10:52:37 UTC
[32/50] jquery-couch commit: updated refs/heads/import-master to
66dbcbf
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/trunk@1094024 13f79535-47bb-0310-9956-ffa450edef68
Project: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/commit/eeac4c31
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/tree/eeac4c31
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/diff/eeac4c31
Branch: refs/heads/import-master
Commit: eeac4c31593f88f0596ae91fcb3fb999975cda54
Parents: e0f9e04
Author: Jan Lehnardt <ja...@apache.org>
Authored: Sat Apr 16 18:29:03 2011 +0000
Committer: Alexander Shorin <kx...@gmail.com>
Committed: Sat Apr 16 18:29:03 2011 +0000
----------------------------------------------------------------------
jquery.couch.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-jquery-couch/blob/eeac4c31/jquery.couch.js
----------------------------------------------------------------------
diff --git a/jquery.couch.js b/jquery.couch.js
index cf0ebef..cd6977f 100644
--- a/jquery.couch.js
+++ b/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({