i guess this should be nosniff?

This commit is contained in:
Ted Unangst 2019-04-17 12:32:50 -04:00
parent 58b051dfc3
commit d067bebbd2
1 changed files with 1 additions and 0 deletions

View File

@ -957,6 +957,7 @@ func servefile(w http.ResponseWriter, r *http.Request) {
return return
} }
w.Header().Set("Content-Type", media) w.Header().Set("Content-Type", media)
w.Header().Set("X-Content-Type-Options", "nosniff")
w.Header().Set("Cache-Control", "max-age="+somedays()) w.Header().Set("Cache-Control", "max-age="+somedays())
w.Write(data) w.Write(data)
} }