aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-07-17 02:26:16 +0200
committerKim Alvefur <zash@zash.se>2023-07-17 02:26:16 +0200
commitfd63cc11c17489fe604585040948a8d270cfd70b (patch)
treed6d53ab2eaaa665216595d53c088bab80e4f2739
parent71ad48095d92dd52a415eef499da32f8c27bb7fe (diff)
downloadprosody-fd63cc11c17489fe604585040948a8d270cfd70b.tar.gz
prosody-fd63cc11c17489fe604585040948a8d270cfd70b.zip
mod_http: Fix passing minimum limits in wrong argument position
-rw-r--r--plugins/mod_http.lua4
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", {});