mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-26 08:39:17 +08:00
fix tests, log ip of the incoming request, bump version
This commit is contained in:
+3
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user