Remove Response.Request field

This commit is contained in:
Adnan Maolood 2020-12-18 00:19:53 -05:00
parent e2c907a7f6
commit 824887eab9
2 changed files with 0 additions and 4 deletions

View File

@ -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()

View File

@ -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