From: Jean Flach Date: Fri, 23 Feb 2018 13:29:18 +0000 (+0100) Subject: Fix incorrect size of request limits X-Git-Tag: v2.9.0~151^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef5e7e8510522aad247b0bd9d34558d2933776b5;p=icinga2 Fix incorrect size of request limits refs #6103 --- diff --git a/lib/remote/httpserverconnection.cpp b/lib/remote/httpserverconnection.cpp index e54653f22..122209f62 100644 --- a/lib/remote/httpserverconnection.cpp +++ b/lib/remote/httpserverconnection.cpp @@ -188,14 +188,14 @@ bool HttpServerConnection::ProcessMessage() 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({ - {"*", 512 * 1028 * 1028}, - {"config/modify", 512 * 1028 * 1028}, - {"console", 512 * 1028 * 1028}, - {"objects/create", 512 * 1028 * 1028}, - {"objects/modify", 512 * 1028 * 1028}, - {"objects/delete", 512 * 1028 * 1028} + {"*", 512 * 1024 * 1024}, + {"config/modify", 512 * 1024 * 1024}, + {"console", 512 * 1024 * 1024}, + {"objects/create", 512 * 1024 * 1024}, + {"objects/modify", 512 * 1024 * 1024}, + {"objects/delete", 512 * 1024 * 1024} }); if (m_CurrentRequest.Headers->Get("expect") == "100-continue") {