修改拦截响应为403

pull/47/head
loveshell 2015-04-08 00:29:47 +08:00
parent aba8bdbc8c
commit 5440ec88fa
1 changed files with 2 additions and 1 deletions

View File

@ -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