Skip to content

Commit

Permalink
http3: add request to response (#3608)
Browse files Browse the repository at this point in the history
  • Loading branch information
Davincible committed Nov 2, 2022
1 parent af30cef commit 047f9b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions http3/client.go
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions http3/client_test.go
Expand Up @@ -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() {
Expand Down

0 comments on commit 047f9b6

Please sign in to comment.