Merge pull request #1365 from SkynetLabs/sevey/drop-requested-skylink

Drop unused requested skylink header
This commit is contained in:
Karol Wypchło 2021-11-08 23:37:46 +01:00 committed by GitHub
commit b677050198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;