Commit c6ac3258 by Joneq

答应header变量

parent 9df6f82d
Showing with 1 additions and 5 deletions
...@@ -21,11 +21,7 @@ local cjson = require "cjson" ...@@ -21,11 +21,7 @@ local cjson = require "cjson"
local headers = ngx.req.get_headers() ngx.say(ngx.req.get_headers()["X-Real-IP"], err)
for k, v in pairs(headers) do
print(k .. ":" .. v)
end
ngx.say(headers, err)
ngx.exit(ngx.HTTP_FORBIDDEN) 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