Skip to content

Commit cf029eb

Browse files
committed
fix(serverHandler): deeper aliases may not visible if parent dir not exist
This partially reverts commit 2ee09c7.
1 parent 647651c commit cf029eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serverHandler/responseData.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func readdir(file *os.File, item os.FileInfo, visitFs bool) (subItems []os.FileI
124124
func (h *handler) mergeAlias(rawRequestPath string, item os.FileInfo, subItems []os.FileInfo) ([]os.FileInfo, []error) {
125125
errs := []error{}
126126

127-
if item == nil || !item.IsDir() || len(h.aliases) == 0 {
127+
if len(h.aliases) == 0 {
128128
return subItems, errs
129129
}
130130

0 commit comments

Comments
 (0)