Browse files

Strip the trailing slash for CouchDB URLs when beginning confirmation

  • Loading branch information...
1 parent eb10688 commit cd426dc878f0376464d566683ec934b3c70132fa @jhs committed Sep 14, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 couch.js
View
1 couch.js
@@ -95,6 +95,7 @@ Couch.prototype.confirmed = function confirm_couch(callback) {
if(self.userCtx && self.known_dbs)
return callback();
+ self.url = self.url.replace(/\/+$/, '')
var confirmer = KNOWN_COUCHES[self.url];
if(!confirmer)
confirmer = KNOWN_COUCHES[self.url] = new lib.Once;

0 comments on commit cd426dc

Please sign in to comment.