fix skylink not accessible
This commit is contained in:
parent
f2e32a3efd
commit
c946014e7c
|
@ -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
|
||||||
|
|
Reference in New Issue