cmd/site: X-Hacker
This commit is contained in:
parent
77db7e371b
commit
abd0ac69fe
|
@ -93,10 +93,18 @@ func (s *Site) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Add("X-Git-Rev", gitRev)
|
w.Header().Add("X-Git-Rev", gitRev)
|
||||||
}
|
}
|
||||||
|
|
||||||
s.clacks.Middleware(middleware.RequestID(s.xffmw.Handler(ex.HTTPLog(s.mux)))).ServeHTTP(w, r)
|
w.Header().Add("X-Hacker", "If you are reading this, check out /signalboost to find people for your team")
|
||||||
|
|
||||||
|
s.clacks.Middleware(
|
||||||
|
middleware.RequestID(
|
||||||
|
s.xffmw.Handler(
|
||||||
|
ex.HTTPLog(s.mux),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
).ServeHTTP(w, r)
|
||||||
}
|
}
|
||||||
|
|
||||||
var arbDate = time.Date(2020, time.February, 29, 0, 0, 0, 0, time.UTC)
|
var arbDate = time.Date(2020, time.May, 21, 0, 0, 0, 0, time.UTC)
|
||||||
|
|
||||||
// Build creates a new Site instance or fails.
|
// Build creates a new Site instance or fails.
|
||||||
func Build() (*Site, error) {
|
func Build() (*Site, error) {
|
||||||
|
|
Loading…
Reference in New Issue