Merge branch 'development' into LTS_development

This commit is contained in:
Thulinma 2018-09-08 16:15:55 +02:00
commit 1d4980dca1
2 changed files with 11 additions and 8 deletions

View file

@ -42,9 +42,11 @@ namespace Mist {
}
void HTTPOutput::onFail(){
H.Clean(); //make sure no parts of old requests are left in any buffers
H.SetBody("Stream not found. Sorry, we tried.");
H.SendResponse("404", "Stream not found", myConn);
if (!webSock){
H.Clean(); //make sure no parts of old requests are left in any buffers
H.SetBody("Stream not found. Sorry, we tried.");
H.SendResponse("404", "Stream not found", myConn);
}
Output::onFail();
}