From 89d0b4600cc80cb507b513c4b76af9c1eb60fb22 Mon Sep 17 00:00:00 2001 From: Robert Newson Date: Tue, 27 Jul 2010 11:02:36 +0000 Subject: fix CLI js test suite. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@979642 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'share/www/script/couch.js') diff --git a/share/www/script/couch.js b/share/www/script/couch.js index 9c81605a..b7e0e513 100644 --- a/share/www/script/couch.js +++ b/share/www/script/couch.js @@ -402,8 +402,7 @@ CouchDB.request = function(method, uri, options) { options.headers["Content-Type"] = options.headers["Content-Type"] || options.headers["content-type"] || "application/json"; options.headers["Accept"] = options.headers["Accept"] || options.headers["accept"] || "application/json"; var req = CouchDB.newXhr(); - var proto = window.location.protocol + "//"; - if(uri.substr(0, proto.length) != proto) { + if(uri.substr(0, CouchDB.protocol.length) != CouchDB.protocol) { uri = CouchDB.urlPrefix + uri } req.open(method, uri, false); -- cgit v1.2.3