diff --git a/conn.go b/conn.go index e439342..81385ad 100644 --- a/conn.go +++ b/conn.go @@ -317,6 +317,10 @@ func (c *Conn) serve(s *stream) { if handler == nil { handler = http.DefaultServeMux } + s.request.RemoteAddr = c.conn.RemoteAddr().String() + if s.request.URL == nil { + s.request.URL = &url.URL{} + } handler.ServeHTTP(s, s.request) s.Close() }