fix skylink not accessible

This commit is contained in:
Karol Wypchlo 2020-11-04 17:28:45 +01:00
parent f2e32a3efd
commit c946014e7c
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ server {
if hnsres_json.skylink then if hnsres_json.skylink then
-- try to match the skylink with sia:// prefix -- try to match the skylink with sia:// prefix
local skylink, skylink_rest = string.match(hnsres_json.skylink, "sia://([^/?]+)(.*)") skylink, skylink_rest = string.match(hnsres_json.skylink, "sia://([^/?]+)(.*)")
-- in case the skylink did not match, assume that there is no sia:// prefix and try to match again -- in case the skylink did not match, assume that there is no sia:// prefix and try to match again
if skylink == nil then if skylink == nil then