Fix incorrect size of request limits

refs #6103
This commit is contained in:
Jean Flach 2018-02-23 14:29:18 +01:00
parent 6d45efab66
commit ef5e7e8510
1 changed files with 7 additions and 7 deletions

View 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") {