Commit 9df6f82d by Joneq

答应header变量

parent 0d6fe000
Showing with 3 additions and 1 deletions
...@@ -21,10 +21,12 @@ local cjson = require "cjson" ...@@ -21,10 +21,12 @@ local cjson = require "cjson"
local headers = ngx.req_get_headers() local headers = ngx.req.get_headers()
for k, v in pairs(headers) do for k, v in pairs(headers) do
print(k .. ":" .. v) print(k .. ":" .. v)
end end
ngx.say(headers, err)
ngx.exit(ngx.HTTP_FORBIDDEN)
-------去除一些不要验证的请求并获取url -------去除一些不要验证的请求并获取url
......
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