Skip to content

Commit

Permalink
修改拦截响应为403
Browse files Browse the repository at this point in the history
  • Loading branch information
loveshell committed Apr 7, 2015
1 parent aba8bdb commit 5440ec8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ ckrules=read_rule('cookie')
function say_html()
if Redirect then
ngx.header.content_type = "text/html"
ngx.status = ngx.HTTP_FORBIDDEN
ngx.say(html)
ngx.exit(200)
ngx.exit(ngx.status)
end
end

Expand Down

0 comments on commit 5440ec8

Please sign in to comment.