Fixed balancer

This commit is contained in:
Thulinma 2018-12-04 12:24:21 +01:00
parent 4d4a7bb969
commit 9bcd365361

View file

@ -46,9 +46,10 @@ namespace Mist {
WARN_MSG("Failed to reach %s on port %lu", url.host.c_str(), url.getPort()); WARN_MSG("Failed to reach %s on port %lu", url.host.c_str(), url.getPort());
}else{ }else{
HTTP::Parser http; HTTP::Parser http;
http.url = "/" + url.path + "?source=" + Encodings::URL::encode(streamName); http.url = "/" + url.path;
http.SetVar("source", streamName);
if (source.size()){ if (source.size()){
http.url += "&fallback=" + Encodings::URL::encode(source); http.SetVar("fallback", source);
} }
http.method = "GET"; http.method = "GET";
http.SetHeader("Host", url.host); http.SetHeader("Host", url.host);