From: Jean Flach Date: Fri, 23 Feb 2018 13:29:18 +0000 (+0100) Subject: Fix incorrect size of request limits X-Git-Tag: v2.8.2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=952e3616e5ed9110e98f62e18ffc4cb2d02182b8;p=icinga2 Fix incorrect size of request limits refs #6103 --- diff --git a/lib/remote/httpserverconnection.cpp b/lib/remote/httpserverconnection.cpp index 8a14b00e1..d5837a856 100644 --- a/lib/remote/httpserverconnection.cpp +++ b/lib/remote/httpserverconnection.cpp @@ -189,14 +189,14 @@ bool HttpServerConnection::ProcessMessage(void) bool HttpServerConnection::ManageHeaders(HttpResponse& response) { - static const size_t defaultContentLengthLimit = 1 * 1028 * 1028; + static const size_t defaultContentLengthLimit = 1 * 1024 * 1024; static const Dictionary::Ptr specialContentLengthLimits = new Dictionary; - specialContentLengthLimits->Set("*", 512 * 1028 * 1028); - specialContentLengthLimits->Set("config/modify", 512 * 1028 * 1028); - specialContentLengthLimits->Set("console", 512 * 1028 * 1028); - specialContentLengthLimits->Set("objects/create", 512 * 1028 * 1028); - specialContentLengthLimits->Set("objects/modify", 512 * 1028 * 1028); - specialContentLengthLimits->Set("objects/delete", 512 * 1028 * 1028); + specialContentLengthLimits->Set("*", 512 * 1024 * 1024); + specialContentLengthLimits->Set("config/modify", 512 * 1024 * 1024); + specialContentLengthLimits->Set("console", 512 * 1024 * 1024); + specialContentLengthLimits->Set("objects/create", 512 * 1024 * 1024); + specialContentLengthLimits->Set("objects/modify", 512 * 1024 * 1024); + specialContentLengthLimits->Set("objects/delete", 512 * 1024 * 1024); if (m_CurrentRequest.Headers->Get("expect") == "100-continue") { String continueResponse = "HTTP/1.1 100 Continue\r\n\r\n";