server.go: Add header to allow any site to access it

Bug: Issue 12339
Change-Id: Ic884b6c16b95dac82e3babf9783f4b713a573ca2
This commit is contained in:
David Ostrovsky
2020-02-13 22:15:39 +01:00
parent 8ea08f5bad
commit 9f83439d62

View File

@@ -463,6 +463,7 @@ func (_ *server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
w.Header().Set("Content-Encoding", "gzip")
addDevHeaders(w)
gzw := newGzipResponseWriter(w)
defer gzw.Close()
http.DefaultServeMux.ServeHTTP(gzw, r)