Send cli headers on default http handler

Fixes #553
This commit is contained in:
Cameron Moore 2021-09-02 17:05:54 -05:00
parent 6184509494
commit 3285288f03
No known key found for this signature in database
GPG key ID: AF96E12468D7553E

View file

@ -265,6 +265,10 @@ func main() {
hooksURL := makeRoutePattern(hooksURLPrefix)
r.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
for _, responseHeader := range responseHeaders {
w.Header().Set(responseHeader.Name, responseHeader.Value)
}
fmt.Fprint(w, "OK")
})