mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-27 01:29:16 +08:00
Compare commits
3 Commits
2.8.0
...
development
| Author | SHA1 | Date | |
|---|---|---|---|
| 560cbaae74 | |||
| 3285288f03 | |||
| 6184509494 |
@@ -3,3 +3,4 @@
|
||||
coverage
|
||||
webhook
|
||||
/test/hookecho
|
||||
build
|
||||
|
||||
@@ -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")
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user