Fixed balancer
This commit is contained in:
parent
4d4a7bb969
commit
9bcd365361
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue