couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r905411 - /couchdb/trunk/share/www/script/couch.js
Date Mon, 01 Feb 2010 20:56:43 GMT
Author: jan
Date: Mon Feb  1 20:56:43 2010
New Revision: 905411

URL: http://svn.apache.org/viewvc?rev=905411&view=rev
Log:
fix oauth test

Modified:
    couchdb/trunk/share/www/script/couch.js

Modified: couchdb/trunk/share/www/script/couch.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/couch.js?rev=905411&r1=905410&r2=905411&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/couch.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/couch.js [utf-8] Mon Feb  1 20:56:43 2010
@@ -412,7 +412,10 @@
 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) {



Mime
View raw message