Merge pull request #554 from moorereason/iss553

Send cli headers on default http handler
This commit is contained in:
Adnan Hajdarević 2021-09-03 10:05:42 +02:00 committed by GitHub
commit 560cbaae74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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")
})