diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-05-18 16:42:43 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-05-18 16:43:29 +0200 |
commit | 80cb4fef8c7db0dadc373fef122d7abb092a7191 (patch) | |
tree | 273c5c4e0dd8b82b366fd83ccce693fca00c70fd /modules/luci-base | |
parent | 27b7e4318000ecd34dee21dd381b1ccaef5d14c1 (diff) |
luci-base: raise maximum POST value size to 100KB
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/luasrc/http.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/luci-base/luasrc/http.lua b/modules/luci-base/luasrc/http.lua index 16fb04c549..f4ede4b8a5 100644 --- a/modules/luci-base/luasrc/http.lua +++ b/modules/luci-base/luasrc/http.lua @@ -14,7 +14,7 @@ local table, ipairs, pairs, type, tostring, tonumber, error = module "luci.http" -HTTP_MAX_CONTENT = 1024*8 -- 8 kB maximum content size +HTTP_MAX_CONTENT = 1024*100 -- 100 kB maximum content size context = util.threadlocal() @@ -416,7 +416,7 @@ function mimedecode_message_body(src, msg, file_cb) end return true - end) + end, HTTP_MAX_CONTENT) return ltn12.pump.all(src, function (chunk) len = len + (chunk and #chunk or 0) @@ -460,7 +460,7 @@ function urldecode_message_body(src, msg) end return true - end) + end, HTTP_MAX_CONTENT) return ltn12.pump.all(src, function (chunk) len = len + (chunk and #chunk or 0) |