diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/www/script/couch.js | 5 |
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) { |