Skip to content

Commit

Permalink
http3: Pass original Conn to ConnContext
Browse files Browse the repository at this point in the history
  • Loading branch information
rthellend committed May 3, 2024
1 parent 3122ca0 commit 088523f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http3/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ func (s *Server) handleRequest(conn *connection, str quic.Stream, datagrams *dat
ctx = context.WithValue(ctx, http.LocalAddrContextKey, conn.LocalAddr())
ctx = context.WithValue(ctx, RemoteAddrContextKey, conn.RemoteAddr())
if s.ConnContext != nil {
ctx = s.ConnContext(ctx, conn)
ctx = s.ConnContext(ctx, conn.Connection)
if ctx == nil {
panic("http3: ConnContext returned nil")
}
Expand Down

0 comments on commit 088523f

Please sign in to comment.