Commit 1a306ac4 by Joneq

答应header变量

parent 746f0a01
Showing with 1 additions and 4 deletions
......@@ -39,10 +39,7 @@ red:set_timeout(1000)
local ok, err = red:connect(config.redis_host, config.redis_port)
local headers = ngx.req.get_headers()
for k, v in pairs(headers) do
ngx.say(k .. ":" .. v,err)
end
ngx.say(ngx.req.get_headers()['referer'],err)
ngx.exit(ngx.HTTP_FORBIDDEN)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment