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 @@ func serveFailure(
r *http.Request,
l log.Logger,
) error {
return serveStaticPage("error.html", ".html", err.Code(), w, r, l)
return serveStaticPage("error.html", err.Code(), w, r, l)
}