Commit 642413a5 by Joneq

答应header变量

parent 8fca8268
Showing with 0 additions and 1 deletions
...@@ -25,7 +25,6 @@ local headers = ngx.req.get_headers() ...@@ -25,7 +25,6 @@ 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(ngx.req.get_headers()["x_forwarded_for"], 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