summaryrefslogtreecommitdiff
path: root/share/www/script
diff options
context:
space:
mode:
Diffstat (limited to 'share/www/script')
-rw-r--r--share/www/script/couch.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/www/script/couch.js b/share/www/script/couch.js
index f5f23f90..4438a870 100644
--- a/share/www/script/couch.js
+++ b/share/www/script/couch.js
@@ -412,7 +412,10 @@ CouchDB.newXhr = function() {
CouchDB.request = function(method, uri, options) {
options = options || {};
var req = CouchDB.newXhr();
- req.open(method, CouchDB.urlPrefix + uri, false);
+ if(uri.substr(0, "http://".length) != "http://") {
+ uri = CouchDB.urlPrefix + uri
+ }
+ req.open(method, uri, false);
if (options.headers) {
var headers = options.headers;
for (var headerName in headers) {