Update init.lua

This commit is contained in:
midoks
2022-10-10 12:45:31 +08:00
parent c7d9ec51cc
commit dff638571a
-1
View File
@@ -307,7 +307,6 @@ end
function waf_post()
if not config['post']['open'] or not C:is_site_config('post') then return false end
if params['method'] ~= "POST" then return false end
if waf_post_referer() then return true end
content_length = tonumber(params["request_header"]['content-length'])
max_len = 640 * 1020000
if content_length > max_len then return false end