fix gophermaps causing server to crash

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
master
kim (grufwub) 4 years ago
parent 9e17e9cce1
commit 96906e356f

@ -101,12 +101,12 @@ func readGophermap(fd *os.File, p *core.Path) ([]gophermapSection, core.Error) {
// Handle regular file
if !isGophermap(request.Path()) {
sections = append(sections, &FileSection{})
sections = append(sections, &FileSection{request.Path()})
return true
}
// Handle gophermap
sections = append(sections, &SubgophermapSection{})
sections = append(sections, &SubgophermapSection{request.Path()})
return true
case typeEnd:

Loading…
Cancel
Save