mirror of https://github.com/Icinga/icinga2.git
parent
b357012ded
commit
14baa4a79b
|
@ -91,7 +91,7 @@ bool HttpConnection::ProcessMessage(void)
|
|||
response.SetStatus(400, "Bad request");
|
||||
String msg = "<h1>Bad request</h1>";
|
||||
response.WriteBody(msg.CStr(), msg.GetLength());
|
||||
response.FinishBody();
|
||||
response.Finish();
|
||||
|
||||
m_Stream->Shutdown();
|
||||
return false;
|
||||
|
|
|
@ -90,7 +90,7 @@ void HttpHandler::ProcessRequest(HttpRequest& request, HttpResponse& response)
|
|||
response.SetStatus(404, "Not found");
|
||||
String msg = "<h1>Not found</h1>";
|
||||
response.WriteBody(msg.CStr(), msg.GetLength());
|
||||
response.FinishBody();
|
||||
response.Finish();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue