Make TLS field nil for unencrypted connections

This commit is contained in:
Adnan Maolood
2021-02-08 12:32:47 -05:00
parent 1f39cab063
commit 29f2b3738d
4 changed files with 6 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ type Response struct {
// TLS contains information about the TLS connection on which the response
// was received.
TLS tls.ConnectionState
TLS *tls.ConnectionState
}
// ReadResponse reads a Gemini response from the provided io.ReadCloser.