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."); 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*/ /*end-roxlu*/
} }

View file

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

View file

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