Compare commits

...

3 Commits

Author SHA1 Message Date
Adnan Hajdarević 560cbaae74 Merge pull request #554 from moorereason/iss553
Send cli headers on default http handler
2021-09-03 10:05:42 +02:00
Cameron Moore 3285288f03 Send cli headers on default http handler
Fixes #553
2021-09-02 19:24:34 -05:00
Adnan Hajdarevic 6184509494 Add build directory to .gitignore 2021-01-26 20:53:07 +01:00
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -3,3 +3,4 @@
coverage
webhook
/test/hookecho
build
+4
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")
})