summaryrefslogtreecommitdiff
path: root/share/www/script/couch.js
diff options
context:
space:
mode:
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);