mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Sockjs: accept relative base urls
(transform them to absolue urls)
This commit is contained in:
@@ -1211,7 +1211,7 @@ SockJS.prototype._applyInfo = function(info, rtt, protocols_whitelist) {
|
||||
// Servers can override base_url, eg to provide a randomized domain name and
|
||||
// avoid browser per-domain connection limits.
|
||||
if (info.base_url)
|
||||
that._base_url = info.base_url;
|
||||
that._base_url = utils.amendUrl(info.base_url);
|
||||
var probed = utils.probeProtocols();
|
||||
that._protocols = utils.detectProtocols(probed, protocols_whitelist, info);
|
||||
// <METEOR>
|
||||
|
||||
Reference in New Issue
Block a user