all repos — homestead @ 2277132a99c598cbc8d3ed7a6ddc30c176848206

Code for my website

re-enable compression

Alan Pearce
commit

2277132a99c598cbc8d3ed7a6ddc30c176848206

parent

fad67bb33d68e1ab0a03868c089ddd697bce012a

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M internal/storage/files/reader.gointernal/storage/files/reader.go
@@ -56,11 +56,12 @@ return errors.WithMessagef(err, "failed to make path relative, path: %s", filePath)
} urlPath := fileNameToPathName("/" + relPath) - r.log.Debug("registering file", "url", urlPath, "filename", relPath) switch filepath.Ext(relPath) { case ".br", ".gz": return nil } + + r.log.Debug("registering file", "url", urlPath, "filename", relPath) return r.registerFile(urlPath, filePath) })
M internal/storage/files/writer.gointernal/storage/files/writer.go
@@ -65,7 +65,7 @@ if err != nil {
return errors.WithMessage(err, "could not create directory") } - fd, err := openFileWrite(f.join(filename)) + fd, err := f.OpenFileAndVariants(filename) if err != nil { return errors.WithMessagef(err, "could not open output file") }