diff options
author | Jan Lehnardt <jan@apache.org> | 2010-02-01 20:56:43 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2010-02-01 20:56:43 +0000 |
commit | 273f16564541dcbf6d0e7fea06aeadd258e6927d (patch) | |
tree | 98803783a02cdca3ff4484a8658487f74b0a2743 /share/www | |
parent | 029ab91dedcace264efa6b878859070ed4f6c673 (diff) |
fix oauth test
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905411 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-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) { |