mod_http: Fix passing minimum limits in wrong argument position
authorKim Alvefur <zash@zash.se>
Mon, 17 Jul 2023 02:26:16 +0200
changeset 13218 5022525364f6
parent 13217 50324f66ca2a
child 13219 b1c2e70de470
mod_http: Fix passing minimum limits in wrong argument position
plugins/mod_http.lua
--- a/plugins/mod_http.lua	Mon Jul 17 01:38:54 2023 +0200
+++ b/plugins/mod_http.lua	Mon Jul 17 02:26:16 2023 +0200
@@ -29,8 +29,8 @@
 
 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", {});