fix hns links redirects

This commit is contained in:
Karol Wypchlo 2021-01-27 13:27:41 +01:00
parent 596247dcf9
commit 5576c223ce
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ server {
end
ngx.var.skylink = skylink
if request_uri_rest == "/" and skylink_rest ~= "" and skylink_rest ~= "/" then
if request_uri_rest == "/" and skylink_rest ~= nil and skylink_rest ~= "" and skylink_rest ~= "/" then
ngx.var.rest = skylink_rest
else
ngx.var.rest = request_uri_rest