Silly mistake is silly.
This commit is contained in:
parent
f7b3ecee8c
commit
cbaf4107f9
3 changed files with 3 additions and 3 deletions
|
@ -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*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue