diff --git a/http/handler.go b/http/handler.go index f12957d..c39f242 100644 --- a/http/handler.go +++ b/http/handler.go @@ -92,7 +92,8 @@ func (this *Handler) ServeHTTP (res http.ResponseWriter, req *http.Request) { } } - // make req clone with correct ip + // make clone of req with correct ip because modifying req directly is + // forbidden req = req.Clone(req.Context()) req.RemoteAddr = realRemoteAddr log.Println("(i)", req.Method, req.URL, "from", remoteAddrStr)