ResponseWriter: Add TLS and Conn methods

This commit is contained in:
Adnan Maolood
2021-02-23 20:59:04 -05:00
parent 75abb99518
commit d35dd3d867
2 changed files with 16 additions and 0 deletions

View File

@@ -360,6 +360,7 @@ func (srv *Server) serveConn(ctx context.Context, conn net.Conn) error {
}
w := NewResponseWriter(cw)
w.conn = conn
req, err := ReadRequest(r)
if err != nil {