Commit 8de12574 authored by 王博's avatar 王博 :dragon_face:
Browse files

init

parent cfd90d0a
No related merge requests found
Showing with 10 additions and 2 deletions
+10 -2
.idea/*
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
......@@ -62,7 +62,8 @@ function plugin:access(plugin_conf)
plugin.super.access(self)
-- your custom code here
ngx.req.set_header("Hello-World", "this is on a request")
ngx.req.set_header("HTTP_X_REAL_PORT", ngx.var.remote_addr)
end --]]
......@@ -71,7 +72,7 @@ function plugin:header_filter(plugin_conf)
plugin.super.header_filter(self)
-- your custom code here, for example;
ngx.header["Bye-World"] = "this is on the response"
--ngx.header["Bye-World"] = "this is on the response"
end --]]
......
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 to comment