From a2a4b6ea8f25d09653aaaf1f976959d77e0f11e1 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 1 Jun 2021 12:20:25 +0200 Subject: [PATCH] fixed != to ~= --- docker/nginx/conf.d/client.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index ac29604c..b4dc0510 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -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