diff options
author | Kim Alvefur <zash@zash.se> | 2016-08-18 15:16:02 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-08-18 15:16:02 +0200 |
commit | 860d3a58b873ee2289a989341e22cb46ebee947b (patch) | |
tree | 224750aa24bd1f26b3e06e6f96a735c2118465e7 /plugins | |
parent | 4c89d041878972b771a7a593f9358c6bdb17d6c7 (diff) | |
parent | 1686ef5d53d3d84d35ebebab89b8d1b22dcf021e (diff) | |
download | prosody-860d3a58b873ee2289a989341e22cb46ebee947b.tar.gz prosody-860d3a58b873ee2289a989341e22cb46ebee947b.zip |
Merge 0.9->0.10
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_http.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua index 086887fb..2cde9341 100644 --- a/plugins/mod_http.lua +++ b/plugins/mod_http.lua @@ -18,6 +18,9 @@ local server = require "net.http.server"; server.set_default_host(module:get_option_string("http_default_host")); +server.set_option("body_size_limit", module:get_option_number("http_max_content_size")); +server.set_option("buffer_size_limit", module:get_option_number("http_max_buffer_size")); + local function normalize_path(path) if path:sub(-1,-1) == "/" then path = path:sub(1, -2); end if path:sub(1,1) ~= "/" then path = "/"..path; end |