log cache key
This commit is contained in:
parent
9c4f9c8300
commit
f59d00e172
|
@ -470,7 +470,7 @@ server {
|
||||||
header_filter_by_lua_block {
|
header_filter_by_lua_block {
|
||||||
if ngx.var.skylink_v1 ~= ngx.var.skylink_v2 then
|
if ngx.var.skylink_v1 ~= ngx.var.skylink_v2 then
|
||||||
if ngx.header.location then
|
if ngx.header.location then
|
||||||
ngx.header.location = ngx.header.location:gsub("^" .. ngx.var.skylink_v1, ngx.var.skylink_v2)
|
ngx.header.location = ngx.header.location:gsub(ngx.var.skylink_v1, ngx.var.skylink_v2)
|
||||||
end
|
end
|
||||||
ngx.header["Skynet-Skylink"] = ngx.var.skylink_v2
|
ngx.header["Skynet-Skylink"] = ngx.var.skylink_v2
|
||||||
end
|
end
|
||||||
|
|
Reference in New Issue