mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-26 17:19:17 +08:00
@@ -265,6 +265,10 @@ func main() {
|
|||||||
hooksURL := makeRoutePattern(hooksURLPrefix)
|
hooksURL := makeRoutePattern(hooksURLPrefix)
|
||||||
|
|
||||||
r.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
|
r.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
|
||||||
|
for _, responseHeader := range responseHeaders {
|
||||||
|
w.Header().Set(responseHeader.Name, responseHeader.Value)
|
||||||
|
}
|
||||||
|
|
||||||
fmt.Fprint(w, "OK")
|
fmt.Fprint(w, "OK")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user