From 952e3616e5ed9110e98f62e18ffc4cb2d02182b8 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 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"; -- 2.50.1