You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2010/02/01 21:56:43 UTC
svn commit: r905411 - /couchdb/trunk/share/www/script/couch.js
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) {