Skip to content

Commit 81e5019

Browse files
committed
fix(archive): prevent lookup alias for request url self
1 parent b163c86 commit 81e5019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serverHandler/archive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (h *handler) visitFs(
5454
if fInfo.IsDir() {
5555
childAliases := map[string]string{}
5656
for aliasUrlPath, aliasFsPath := range h.aliases {
57-
if path.Dir(aliasUrlPath) == rawRequestPath {
57+
if aliasUrlPath != rawRequestPath && path.Dir(aliasUrlPath) == rawRequestPath {
5858
childAliases[aliasUrlPath] = aliasFsPath
5959
continue
6060
}

0 commit comments

Comments
 (0)