Merge pull request #6115 from Icinga/ineedmorebranches

Fix incorrect size of request limits
This commit is contained in:
Jean Flach 2018-02-23 14:42:25 +01:00 committed by GitHub
commit 3caf480252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,14 +188,14 @@ bool HttpServerConnection::ProcessMessage()
bool HttpServerConnection::ManageHeaders(HttpResponse& response) 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({ static const Dictionary::Ptr specialContentLengthLimits = new Dictionary({
{"*", 512 * 1028 * 1028}, {"*", 512 * 1024 * 1024},
{"config/modify", 512 * 1028 * 1028}, {"config/modify", 512 * 1024 * 1024},
{"console", 512 * 1028 * 1028}, {"console", 512 * 1024 * 1024},
{"objects/create", 512 * 1028 * 1028}, {"objects/create", 512 * 1024 * 1024},
{"objects/modify", 512 * 1028 * 1028}, {"objects/modify", 512 * 1024 * 1024},
{"objects/delete", 512 * 1028 * 1028} {"objects/delete", 512 * 1024 * 1024}
}); });
if (m_CurrentRequest.Headers->Get("expect") == "100-continue") { if (m_CurrentRequest.Headers->Get("expect") == "100-continue") {