mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-22 21:32:32 +00:00
fix tests, log ip of the incoming request, bump version
This commit is contained in:
parent
249962f002
commit
a38875213a
2 changed files with 10 additions and 8 deletions
|
@ -21,7 +21,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
version = "2.6.3"
|
||||
version = "2.6.4"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -188,6 +188,8 @@ func main() {
|
|||
}
|
||||
|
||||
func hookHandler(w http.ResponseWriter, r *http.Request) {
|
||||
log.Printf("incoming HTTP request from %s\n", r.RemoteAddr)
|
||||
|
||||
for _, responseHeader := range responseHeaders {
|
||||
w.Header().Set(responseHeader.Name, responseHeader.Value)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue