i guess this should be nosniff?
This commit is contained in:
parent
58b051dfc3
commit
d067bebbd2
1
honk.go
1
honk.go
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue