Remove Response.Request field
This commit is contained in:
parent
e2c907a7f6
commit
824887eab9
@ -88,7 +88,6 @@ func (c *Client) Do(req *Request) (*Response, error) {
|
||||
if err := resp.read(conn); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
resp.Request = req
|
||||
// Store connection state
|
||||
resp.TLS = conn.ConnectionState()
|
||||
|
||||
|
@ -21,9 +21,6 @@ type Response struct {
|
||||
// Body contains the response body for successful responses.
|
||||
Body io.ReadCloser
|
||||
|
||||
// Request is the request that was sent to obtain this response.
|
||||
Request *Request
|
||||
|
||||
// TLS contains information about the TLS connection on which the response
|
||||
// was received.
|
||||
TLS tls.ConnectionState
|
||||
|
Loading…
Reference in New Issue
Block a user