couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r805883 - /couchdb/trunk/share/www/script/test/http.js
Date Wed, 19 Aug 2009 17:09:50 GMT
Author: jan
Date: Wed Aug 19 17:09:50 2009
New Revision: 805883

URL: http://svn.apache.org/viewvc?rev=805883&view=rev
Log:
make http.js hostname-aware, patch by Benoit Chesneau, closes COUCHDB-475

Modified:
    couchdb/trunk/share/www/script/test/http.js

Modified: couchdb/trunk/share/www/script/test/http.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/http.js?rev=805883&r1=805882&r2=805883&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/http.js (original)
+++ couchdb/trunk/share/www/script/test/http.js Wed Aug 19 17:09:50 2009
@@ -21,10 +21,11 @@
 
   // PUT on existing DB should return 412 instead of 500
   if (debug) debugger;
-  
+
   var xhr = CouchDB.request("PUT", "/test_suite_db/test", {body: "{}"});
-  
-  TEquals("http://127.0.0.1:5984/test_suite_db/test", 
+  var host = CouchDB.host;
+
+  TEquals("http://" + host + "/test_suite_db/test", 
     xhr.getResponseHeader("Location"),
     "should include ip address");
 



Mime
View raw message