Silly mistake is silly.

This commit is contained in:
Thulinma 2016-04-05 10:05:11 +02:00
parent f7b3ecee8c
commit cbaf4107f9
3 changed files with 3 additions and 3 deletions

View file

@ -410,7 +410,7 @@ namespace Mist {
WARN_MSG("Requested to send a HTTP response but the given message is empty. Trying though.");
}
H.SendResponse(message, code, myConn);
H.SendResponse(code, message, myConn);
}
/*end-roxlu*/
}

View file

@ -22,7 +22,7 @@ namespace Mist {
void reConnector(std::string & connector);
std::string getHandler();
/*begin-roxlu*/
void sendResponse(std::string message, std::string code = "200");
void sendResponse(std::string message = "OK", std::string code = "200");
/*end-roxlu*/
protected:
HTTP::Parser H;

View file

@ -44,7 +44,7 @@ namespace Mist {
H.SetHeader("Content-Type", "video/x-flv");
H.protocol = "HTTP/1.0";
H.setCORSHeaders();
sendResponse("OK");
sendResponse();
myConn.SendNow(FLV::Header, 13);
tag.DTSCMetaInit(myMeta, selectedTracks);
myConn.SendNow(tag.data, tag.len);