mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-12 16:24:41 +02:00
parent
6d45efab66
commit
ef5e7e8510
@ -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") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user