Statically save Content-Type in generated files as well.

This commit is contained in:
NI
2019-09-13 14:21:24 +08:00
parent e3f4079bdd
commit d03ab083d7
4 changed files with 48 additions and 24 deletions

View File

@@ -29,5 +29,5 @@ type home struct {
}
func (h home) Get(w http.ResponseWriter, r *http.Request, l log.Logger) error {
return serveStaticCachePage("index.html", ".html", w, r, l)
return serveStaticCachePage("index.html", w, r, l)
}