fix tests, log ip of the incoming request, bump version

This commit is contained in:
Adnan Hajdarevic 2017-05-27 17:14:38 +02:00
parent 249962f002
commit a38875213a
2 changed files with 10 additions and 8 deletions

View file

@ -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)
}