From 4039efe4b205d5f7440b5d73cf66e69d381fad0a 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) Former-commit-id: 6d65d8aac2314998c01c4a04e05395e1a2553045 [formerly 1ec8cd98f322298f5c5da4747f05189bc2f2ddf9] [formerly ea74b49f932daa9836df7cdf51b8e9cd6d043175 [formerly 53240ef9dd0004adca224869bdc21a91a1f47167]] Former-commit-id: 2cbd9e68f132a1170261b4b9549a2cb79b0059d8 [formerly c47d9063e48e8fcf77ece4ab75a10b588a8ecafa] Former-commit-id: 203b0a61ef2045c62f3ccd94f62625f0e19435e4 --- 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")