Skip to content

The path location can point to incorrect level #2

@antsy

Description

@antsy

This seems wrong, needs to investigate.

serve/serve.go

Lines 91 to 96 in 67f9b75

var fileSystem http.Dir
if info, err := os.Stat(path); err == nil && info.IsDir() {
fileSystem = http.Dir(path)
} else {
fileSystem = http.Dir(filepath.Dir(path))
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions