Author: jan
Date: Sat Apr 16 18:31:16 2011
New Revision: 1094025
URL: http://svn.apache.org/viewvc?rev=1094025&view=rev
Log:
Don't expect a 202 repsponse code when cancelling a replication.
Closes COUCHDB-1016
Patch by Felix Hummel.
Modified:
couchdb/branches/1.1.x/THANKS
couchdb/branches/1.1.x/share/www/script/jquery.couch.js
Modified: couchdb/branches/1.1.x/THANKS
URL:
http://svn.apache.org/viewvc/couchdb/branches/1.1.x/THANKS?rev=1094025&r1=1094024&r2=1094025&view=diff
==============================================================================
--- couchdb/branches/1.1.x/THANKS (original)
+++ couchdb/branches/1.1.x/THANKS Sat Apr 16 18:31:16 2011
@@ -75,5 +75,6 @@ suggesting improvements or submitting ch
* Benjamin Young <[email protected]>
* Gabriel Farrell <[email protected]>
* Mike Leddy <[email protected]>
+ * Felix Hummel <[email protected]>
For a list of authors see the `AUTHORS` file.
Modified: couchdb/branches/1.1.x/share/www/script/jquery.couch.js
URL:
http://svn.apache.org/viewvc/couchdb/branches/1.1.x/share/www/script/jquery.couch.js?rev=1094025&r1=1094024&r2=1094025&view=diff
==============================================================================
--- couchdb/branches/1.1.x/share/www/script/jquery.couch.js [utf-8] (original)
+++ couchdb/branches/1.1.x/share/www/script/jquery.couch.js [utf-8] Sat Apr 16
18:31:16 2011
@@ -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({