From 273f16564541dcbf6d0e7fea06aeadd258e6927d Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Mon, 1 Feb 2010 20:56:43 +0000 Subject: fix oauth test git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905411 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'share/www') 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) { -- cgit v1.2.3