diff --git a/nginx/conf.d/include/location-hns b/nginx/conf.d/include/location-hns index fbd44b7..a7c1eb0 100644 --- a/nginx/conf.d/include/location-hns +++ b/nginx/conf.d/include/location-hns @@ -18,7 +18,7 @@ rewrite_by_lua_block { ngx.status = (hnsres_err and ngx.HTTP_INTERNAL_SERVER_ERROR) or hnsres_res.status -- do not send response on unauthorized error (status code 401) -- otherwise we will not be able to display custom error page - if ngx.status != ngx.HTTP_UNAUTHORIZED then + if ngx.status ~= ngx.HTTP_UNAUTHORIZED then ngx.header["content-type"] = "text/plain" ngx.say(hnsres_err or hnsres_res.body) end @@ -55,7 +55,7 @@ rewrite_by_lua_block { ngx.status = (registry_err and ngx.HTTP_INTERNAL_SERVER_ERROR) or registry_res.status -- do not send response on unauthorized error (status code 401) -- otherwise we will not be able to display custom error page - if ngx.status != ngx.HTTP_UNAUTHORIZED then + if ngx.status ~= ngx.HTTP_UNAUTHORIZED then ngx.header["content-type"] = "text/plain" ngx.say(registry_err or registry_res.body) end diff --git a/nginx/conf.d/server/server.dnslink b/nginx/conf.d/server/server.dnslink index 2a8685c..90603da 100644 --- a/nginx/conf.d/server/server.dnslink +++ b/nginx/conf.d/server/server.dnslink @@ -26,7 +26,7 @@ location / { ngx.status = (err and ngx.HTTP_INTERNAL_SERVER_ERROR) or res.status -- do not send response on unauthorized error (status code 401) -- otherwise we will not be able to display custom error page - if ngx.status != ngx.HTTP_UNAUTHORIZED then + if ngx.status ~= ngx.HTTP_UNAUTHORIZED then ngx.header["content-type"] = "text/plain" ngx.say(err or res.body) end