From ef5e7e8510522aad247b0bd9d34558d2933776b5 Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Fri, 23 Feb 2018 14:29:18 +0100 Subject: [PATCH] Fix incorrect size of request limits refs #6103 --- lib/remote/httpserverconnection.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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") {