fix: http wrong header (#333)

pull/337/head
Equim 2018-01-18 23:36:45 +08:00 committed by Henrique Dias
parent 8fb3798c12
commit 53240ef9dd
1 changed files with 1 additions and 1 deletions

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. // Any other request should show the index.html file.
w.Header().Set("x-frame-options", "SAMEORIGIN") 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") w.Header().Set("x-xss-protection", "1; mode=block")
return renderFile(c, w, "index.html") return renderFile(c, w, "index.html")