mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
update
This commit is contained in:
@@ -531,7 +531,7 @@ end
|
||||
|
||||
|
||||
function waf()
|
||||
if server_name =="unset" then ngx.exit(403) end
|
||||
if server_name == "unset" then ngx.exit(403) end
|
||||
min_route()
|
||||
-- C:D("min_route")
|
||||
|
||||
|
||||
@@ -360,7 +360,9 @@ end
|
||||
|
||||
function _M.return_html(self, status, html)
|
||||
ngx.header.content_type = "text/html"
|
||||
ngx.header.Cache_Control = "no-cache"
|
||||
status = tonumber(status)
|
||||
|
||||
-- self:D("return_html:"..tostring(status))
|
||||
if status == 200 then
|
||||
ngx.say(html)
|
||||
|
||||
Reference in New Issue
Block a user