fix serious bug where gophermaps read as regular files

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
master
kim (grufwub) 4 years ago
parent e2ffa2ac93
commit dc4c9da924

@ -94,7 +94,7 @@ func (fc *FileCache) FetchRegular(request *FileSystemRequest) ([]byte, *GophorEr
func (fc *FileCache) FetchGophermap(request *FileSystemRequest) ([]byte, *GophorError) {
/* Calls fc.Fetch() but with the filecontents init function for a gophermap */
return fc.Fetch(request, func(path string) FileContents {
return &RegularFileContents{
return &GophermapContents{
path,
nil,
}

Loading…
Cancel
Save