mirror of
https://github.com/Luzifer/ots.git
synced 2025-04-19 06:55:51 -04:00
Add missing Content-Type header for index
Serving the page without Content-Type seems to work but confuses the view-source mode in Firefox.
This commit is contained in:
parent
652eea694e
commit
fefee9721d
1
main.go
1
main.go
@ -113,6 +113,7 @@ func handleIndex(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||
w.Header().Set("Referrer-Policy", "no-referrer")
|
||||
w.Header().Set("X-Frame-Options", "DENY")
|
||||
w.Header().Set("X-Xss-Protection", "1; mode=block")
|
||||
|
Loading…
x
Reference in New Issue
Block a user