Fix incorrect sending of HTTP error response through Websocket connections.
This commit is contained in:
parent
373b9afd32
commit
6226a05fe3
1 changed files with 5 additions and 3 deletions
|
@ -43,9 +43,11 @@ namespace Mist {
|
||||||
}
|
}
|
||||||
|
|
||||||
void HTTPOutput::onFail(){
|
void HTTPOutput::onFail(){
|
||||||
H.Clean(); //make sure no parts of old requests are left in any buffers
|
if (!webSock){
|
||||||
H.SetBody("Stream not found. Sorry, we tried.");
|
H.Clean(); //make sure no parts of old requests are left in any buffers
|
||||||
H.SendResponse("404", "Stream not found", myConn);
|
H.SetBody("Stream not found. Sorry, we tried.");
|
||||||
|
H.SendResponse("404", "Stream not found", myConn);
|
||||||
|
}
|
||||||
Output::onFail();
|
Output::onFail();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue