summaryrefslogtreecommitdiff
path: root/share/www/script/couch.js
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2010-07-27 11:02:36 +0000
committerRobert Newson <rnewson@apache.org>2010-07-27 11:02:36 +0000
commit89d0b4600cc80cb507b513c4b76af9c1eb60fb22 (patch)
treee008483a43c59cd40d6dd6cdc4f28073cbedc41e /share/www/script/couch.js
parent4b0948ddb3a428f8a5330e05745b2fbd4ccf9375 (diff)
fix CLI js test suite.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@979642 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/couch.js')
-rw-r--r--share/www/script/couch.js3
1 files changed, 1 insertions, 2 deletions
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);