fix redirect loop
This commit is contained in:
parent
06371bd542
commit
4e26e066ad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue