From 53240ef9dd0004adca224869bdc21a91a1f47167 Mon Sep 17 00:00:00 2001 From: Equim Date: Thu, 18 Jan 2018 23:36:45 +0800 Subject: [PATCH] fix: http wrong header (#333) --- http/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/http.go b/http/http.go index 1aaa6a74..f674b312 100644 --- a/http/http.go +++ b/http/http.go @@ -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")