mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
parent
15e5dbd151
commit
8fc1d6d0d0
@ -90,7 +90,7 @@ bool HttpConnection::ProcessMessage(void)
|
|||||||
} catch (const std::exception& ex) {
|
} catch (const std::exception& ex) {
|
||||||
HttpResponse response(m_Stream, m_CurrentRequest);
|
HttpResponse response(m_Stream, m_CurrentRequest);
|
||||||
response.SetStatus(400, "Bad request");
|
response.SetStatus(400, "Bad request");
|
||||||
String msg = "<h1>Bad request</h1><p>" + DiagnosticInformation(ex) + "</p>";
|
String msg = "<h1>Bad request</h1><p><pre>" + DiagnosticInformation(ex) + "</pre></p>";
|
||||||
response.WriteBody(msg.CStr(), msg.GetLength());
|
response.WriteBody(msg.CStr(), msg.GetLength());
|
||||||
response.Finish();
|
response.Finish();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user