From 96906e356fabccf07f6e4a15cf1d0289f84959c1 Mon Sep 17 00:00:00 2001 From: "kim (grufwub)" Date: Wed, 16 Sep 2020 19:14:57 +0100 Subject: [PATCH] fix gophermaps causing server to crash Signed-off-by: kim (grufwub) --- gopher/gophermap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gopher/gophermap.go b/gopher/gophermap.go index 82189c4..d9bb6d1 100644 --- a/gopher/gophermap.go +++ b/gopher/gophermap.go @@ -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: