From 824887eab9e90ea9cae912f13cf02dbf298b6a2c Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Fri, 18 Dec 2020 00:19:53 -0500 Subject: [PATCH] Remove Response.Request field --- client.go | 1 - response.go | 3 --- 2 files changed, 4 deletions(-) diff --git a/client.go b/client.go index 2dc2ccc..ca964d0 100644 --- a/client.go +++ b/client.go @@ -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() diff --git a/response.go b/response.go index 8f24419..447050d 100644 --- a/response.go +++ b/response.go @@ -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