diff options
| author | Adnan Maolood <[email protected]> | 2021-02-08 12:32:47 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-08 12:32:49 -0500 |
| commit | 29f2b3738d14b01f3902d6d06a672c8347954d7b (patch) | |
| tree | c348c4fb874103ff2a303801872c2e62228206a2 /client.go | |
| parent | Remove unused field (diff) | |
| download | go-gemini-29f2b3738d14b01f3902d6d06a672c8347954d7b.tar.xz go-gemini-29f2b3738d14b01f3902d6d06a672c8347954d7b.zip | |
Make TLS field nil for unencrypted connections
Diffstat (limited to 'client.go')
| -rw-r--r-- | client.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -101,7 +101,8 @@ func (c *Client) Do(req *Request) (*Response, error) { } // Store connection state - resp.TLS = conn.ConnectionState() + state := conn.ConnectionState() + resp.TLS = &state return resp, nil } |