diff options
author | Kim Alvefur <zash@zash.se> | 2023-07-17 02:26:16 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-07-17 02:26:16 +0200 |
commit | fd63cc11c17489fe604585040948a8d270cfd70b (patch) | |
tree | d6d53ab2eaaa665216595d53c088bab80e4f2739 | |
parent | 71ad48095d92dd52a415eef499da32f8c27bb7fe (diff) | |
download | prosody-fd63cc11c17489fe604585040948a8d270cfd70b.tar.gz prosody-fd63cc11c17489fe604585040948a8d270cfd70b.zip |
mod_http: Fix passing minimum limits in wrong argument position
-rw-r--r-- | plugins/mod_http.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua index 5b5cb6c8..1534f1b3 100644 --- a/plugins/mod_http.lua +++ b/plugins/mod_http.lua @@ -29,8 +29,8 @@ local server = require "prosody.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", 0)); -server.set_option("buffer_size_limit", module:get_option_number("http_max_buffer_size", 0)); +server.set_option("body_size_limit", module:get_option_number("http_max_content_size", nil, 0)); +server.set_option("buffer_size_limit", module:get_option_number("http_max_buffer_size", nil, 0)); -- CORS settings local cors_overrides = module:get_option("http_cors_override", {}); |