couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [32/50] jquery-couch commit: updated refs/heads/import-master to 66dbcbf
Date Tue, 01 Apr 2014 08:52:37 GMT
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 <jan@apache.org>
Authored: Sat Apr 16 18:29:03 2011 +0000
Committer: Alexander Shorin <kxepal@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({


Mime
View raw message