Comparison

plugins/mod_http.lua @ 11727:f3aee8a825cc

Fix various spelling errors (thanks codespell) Also special thanks to timeless, for wordlessly reminding me to check for typos.
author Kim Alvefur <zash@zash.se>
date Tue, 27 Jul 2021 00:13:18 +0200
parent 11410:2ea70d291429
child 12113:86e6f0810956
comparison
equal deleted inserted replaced
11726:76156c675456 11727:f3aee8a825cc
28 server.set_default_host(module:get_option_string("http_default_host")); 28 server.set_default_host(module:get_option_string("http_default_host"));
29 29
30 server.set_option("body_size_limit", module:get_option_number("http_max_content_size")); 30 server.set_option("body_size_limit", module:get_option_number("http_max_content_size"));
31 server.set_option("buffer_size_limit", module:get_option_number("http_max_buffer_size")); 31 server.set_option("buffer_size_limit", module:get_option_number("http_max_buffer_size"));
32 32
33 -- CORS settigs 33 -- CORS settings
34 local opt_methods = module:get_option_set("access_control_allow_methods", { "GET", "OPTIONS" }); 34 local opt_methods = module:get_option_set("access_control_allow_methods", { "GET", "OPTIONS" });
35 local opt_headers = module:get_option_set("access_control_allow_headers", { "Content-Type" }); 35 local opt_headers = module:get_option_set("access_control_allow_headers", { "Content-Type" });
36 local opt_credentials = module:get_option_boolean("access_control_allow_credentials", false); 36 local opt_credentials = module:get_option_boolean("access_control_allow_credentials", false);
37 local opt_max_age = module:get_option_number("access_control_max_age", 2 * 60 * 60); 37 local opt_max_age = module:get_option_number("access_control_max_age", 2 * 60 * 60);
38 38