Merge pull request from GHSA-2hfj-cxw7-g45p

This commit is contained in:
Gabe Kangas
2021-08-30 19:43:28 -07:00
committed by GitHub
parent 663a7b5fe1
commit 7278ce8f26
3 changed files with 21 additions and 10 deletions

View File

@@ -68,8 +68,8 @@ func IndexHandler(w http.ResponseWriter, r *http.Request) {
// Set a cache control max-age header
middleware.SetCachingHeaders(w, r)
// Opt-out of Google FLoC
middleware.DisableFloc(w)
// Set our global HTTP headers
middleware.SetHeaders(w)
http.ServeFile(w, r, path.Join(config.WebRoot, r.URL.Path))
}