server: add X-Clacks-Overhead header

This commit is contained in:
Cadey Ratio 2017-02-07 18:25:14 -08:00
parent b792245f74
commit 1876477140
1 changed files with 3 additions and 0 deletions

View File

@ -168,6 +168,9 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
r.Header.Set("X-Request-Id", rid)
w.Header().Set("X-Request-Id", rid)
// http://www.gnuterrypratchett.com/
w.Header().Set("X-Clacks-Overhead", "GNU Terry Pratchett")
if strings.HasSuffix(r.Host, ".onion") {
w.Header().Add("DNT", "1")
}