fix redirect loop

master
nixo 2020-10-26 21:35:12 +01:00
parent 06371bd542
commit 4e26e066ad
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ function matchpath(target, path)
params = Dict()
for i = 1:length(target)
# @show target[i], path[i]
if startswith(target[i], ":")
if startswith(target[i], ":") && !isempty(path[i])
params[Symbol(target[i][2:end])] = path[i]
else
target[i] == path[i] || return