]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect size of request limits 6115/head
authorJean Flach <jean-marcel.flach@icinga.com>
Fri, 23 Feb 2018 13:29:18 +0000 (14:29 +0100)
committerJean Flach <jean-marcel.flach@icinga.com>
Fri, 23 Feb 2018 13:29:18 +0000 (14:29 +0100)
refs #6103

lib/remote/httpserverconnection.cpp

index e54653f22b361f9d744b83be67a7d4740165c34c..122209f62da4b14cdbbb1ccc132e4660a1a0f41e 100644 (file)
@@ -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") {