Diff

plugins/mod_http.lua @ 13213:50324f66ca2a

plugins: Use integer config API with interval specification where sensible Many of these fall into a few categories: - util.cache size, must be >= 1 - byte or item counts that logically can't be negative - port numbers that should be in 1..0xffff
author Kim Alvefur <zash@zash.se>
date Mon, 17 Jul 2023 01:38:54 +0200
parent 13209:c8d949cf6b09
child 13214:5022525364f6
line wrap: on
line diff
--- a/plugins/mod_http.lua	Mon Jul 17 00:37:44 2023 +0200
+++ b/plugins/mod_http.lua	Mon Jul 17 01:38:54 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"));
-server.set_option("buffer_size_limit", module:get_option_number("http_max_buffer_size"));
+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));
 
 -- CORS settings
 local cors_overrides = module:get_option("http_cors_override", {});