mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Use URL rather than hostname for setServer lookup
This commit is contained in:
@@ -132,11 +132,11 @@ Request.prototype.setServer = function(server) {
|
||||
break;
|
||||
|
||||
case 'string':
|
||||
// Find server with hostname string
|
||||
// Find server by URL
|
||||
var servers = this.remote._servers;
|
||||
|
||||
for (var i=0, s; (s=servers[i]); i++) {
|
||||
if (s._host === server) {
|
||||
if (s._url === server) {
|
||||
selected = s;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user