fixed != to ~=

This commit is contained in:
Karol Wypchlo 2021-06-01 12:20:25 +02:00
parent 60cb812148
commit a2a4b6ea8f
1 changed files with 1 additions and 1 deletions

View File

@ -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
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
ngx.header.location = ngx.header.location:gsub("^" .. ngx.var.skylink_v1, ngx.var.skylink)
end