Permalink
Browse files

fix oauth test

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@905411 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 029ab91 commit 273f16564541dcbf6d0e7fea06aeadd258e6927d @janl janl committed Feb 1, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 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) {

0 comments on commit 273f165

Please sign in to comment.