ifmethod==”POST” and not string.find(ngx.req.get_headers()[‘Content-Type’],”multipart”) then 在waf.lua中的22行中添加这行就解决不能上传图片的问题了,在家带孩子还写日志分析的时间功夫都木有啊,不说了,去带孩子…. 转载请注明:稻香的博客 » lua过滤post上传图片