http3: pass original Conn to ConnContext (#4480)

* http3: Pass original Conn to ConnContext

https://github.com/quic-go/quic-go/issues/4479

* Update test to check conn value
This commit is contained in:
Robin Thellend
2024-05-03 16:17:39 -07:00
committed by GitHub
parent 3122ca009b
commit a5adbd44c7
2 changed files with 2 additions and 2 deletions

View File

@@ -169,7 +169,7 @@ var _ = Describe("Server", func() {
Expect(req.Host).To(Equal("www.example.com"))
Expect(req.RemoteAddr).To(Equal("127.0.0.1:1337"))
Expect(req.Context().Value(ServerContextKey)).To(Equal(s))
Expect(req.Context().Value(testConnContextKey("test"))).ToNot(Equal(nil))
Expect(req.Context().Value(testConnContextKey("test"))).To(Equal(conn.Connection))
})
It("returns 200 with an empty handler", func() {