Drop unused requested skylink header

This commit is contained in:
Matthew Sevey 2021-11-08 13:13:44 -05:00
parent d4eb04f702
commit 6a3edd6848
No known key found for this signature in database
GPG Key ID: 9ADDD344F13057F6
2 changed files with 1 additions and 6 deletions

View File

@ -0,0 +1 @@
- Drop `Skynet-Requested-Skylink` header

View File

@ -249,9 +249,6 @@ location /skynet/metadata {
header_filter_by_lua_block {
ngx.header["Skynet-Portal-Api"] = os.getenv("SKYNET_PORTAL_API")
ngx.header["Skynet-Server-Api"] = os.getenv("SKYNET_SERVER_API")
-- do not expose internal header
ngx.header["Skynet-Requested-Skylink"] = ""
}
proxy_set_header User-Agent: Sia-Agent;
@ -264,9 +261,6 @@ location /skynet/resolve {
header_filter_by_lua_block {
ngx.header["Skynet-Portal-Api"] = os.getenv("SKYNET_PORTAL_API")
ngx.header["Skynet-Server-Api"] = os.getenv("SKYNET_SERVER_API")
-- do not expose internal header
ngx.header["Skynet-Requested-Skylink"] = ""
}
proxy_set_header User-Agent: Sia-Agent;