forked from quic-go/quic-go
http3: add request to response (#3608)
This commit is contained in:
@@ -390,6 +390,7 @@ func (c *client) doRequest(req *http.Request, str quic.Stream, opt RoundTripOpt,
|
||||
ProtoMajor: 3,
|
||||
Header: http.Header{},
|
||||
TLS: &connState,
|
||||
Request: req,
|
||||
}
|
||||
for _, hf := range hfs {
|
||||
switch hf.Name {
|
||||
|
||||
@@ -741,6 +741,7 @@ var _ = Describe("Client", func() {
|
||||
Expect(rsp.Proto).To(Equal("HTTP/3.0"))
|
||||
Expect(rsp.ProtoMajor).To(Equal(3))
|
||||
Expect(rsp.StatusCode).To(Equal(418))
|
||||
Expect(rsp.Request).ToNot(BeNil())
|
||||
})
|
||||
|
||||
It("doesn't close the request stream, with DontCloseRequestStream set", func() {
|
||||
|
||||
Reference in New Issue
Block a user