Skip to content

Commit

Permalink
fix(serverHandler): deeper aliases may not visible if parent dir not …
Browse files Browse the repository at this point in the history
…exist

This partially reverts commit 2ee09c7.
  • Loading branch information
marjune163 committed Feb 20, 2020
1 parent 647651c commit cf029eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serverHandler/responseData.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func readdir(file *os.File, item os.FileInfo, visitFs bool) (subItems []os.FileI
func (h *handler) mergeAlias(rawRequestPath string, item os.FileInfo, subItems []os.FileInfo) ([]os.FileInfo, []error) {
errs := []error{}

if item == nil || !item.IsDir() || len(h.aliases) == 0 {
if len(h.aliases) == 0 {
return subItems, errs
}

Expand Down

0 comments on commit cf029eb

Please sign in to comment.