fixed != to ~=
This commit is contained in:
parent
60cb812148
commit
a2a4b6ea8f
|
@ -467,7 +467,7 @@ server {
|
||||||
|
|
||||||
# in case siad returns location header and we have skylink v2, we need to replace the skylink v1 with v2
|
# in case siad returns location header and we have skylink v2, we need to replace the skylink v1 with v2
|
||||||
header_filter_by_lua_block {
|
header_filter_by_lua_block {
|
||||||
if ngx.var.skylink != ngx.var.skylink_v1 then
|
if ngx.var.skylink ~= ngx.var.skylink_v1 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)
|
ngx.header.location = ngx.header.location:gsub("^" .. ngx.var.skylink_v1, ngx.var.skylink)
|
||||||
end
|
end
|
||||||
|
|
Reference in New Issue