mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-15 10:04:44 +00:00
Merge pull request #554 from moorereason/iss553
Send cli headers on default http handler
This commit is contained in:
commit
560cbaae74
1 changed files with 4 additions and 0 deletions
|
@ -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")
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue