fix: http wrong header (#333)

This commit is contained in:
Equim 2018-01-18 23:36:45 +08:00 committed by Henrique Dias
parent 8fb3798c12
commit 53240ef9dd

View File

@ -86,7 +86,7 @@ func serve(c *fm.Context, w http.ResponseWriter, r *http.Request) (int, error) {
// Any other request should show the index.html file.
w.Header().Set("x-frame-options", "SAMEORIGIN")
w.Header().Set("x-content-type", "nosniff")
w.Header().Set("x-content-type-options", "nosniff")
w.Header().Set("x-xss-protection", "1; mode=block")
return renderFile(c, w, "index.html")