Skip to content

Commit 5440ec8

Browse files
committed
修改拦截响应为403
1 parent aba8bdb commit 5440ec8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ ckrules=read_rule('cookie')
7171
function say_html()
7272
if Redirect then
7373
ngx.header.content_type = "text/html"
74+
ngx.status = ngx.HTTP_FORBIDDEN
7475
ngx.say(html)
75-
ngx.exit(200)
76+
ngx.exit(ngx.status)
7677
end
7778
end
7879

0 commit comments

Comments
 (0)