serve files from Storage implementation
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M internal/website/mux.go → internal/website/mux.go
@@ -83,9 +83,9 @@ enc := nego.NegotiateContentEncoding(r, file.AvailableEncodings()...) switch enc { case "br", "gzip": w.Header().Add("Content-Encoding", enc) - w.Header().Add("Content-Type", file.ContentType) } - http.ServeFile(w, r, file.Alternatives[enc]) + w.Header().Add("Content-Type", file.ContentType) + http.ServeContent(w, r, file.Path, file.LastModified, file.Encodings[enc]) return nil }, log))