]> granicus.if.org Git - icinga2/commitdiff
Build fix
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 9 Jul 2015 10:28:15 +0000 (12:28 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 9 Jul 2015 10:28:15 +0000 (12:28 +0200)
refs #9447

lib/remote/httpconnection.cpp
lib/remote/httphandler.cpp

index 20fdee6318015409a966e41c93959b6452381db2..59bdb730ddac064e19406aaabc0145aa33011164 100644 (file)
@@ -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;
index 8c080229733b8ac5c09d4bc049a36e2228285f73..51bffc80e23494d59e973215ec3c062520790486 100644 (file)
@@ -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;
        }