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