response: Remove TLS field
This commit is contained in:
parent
eee7156b3a
commit
62e22b4cf2
@ -149,12 +149,6 @@ func (c *Client) do(conn net.Conn, req *Request) (*Response, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Store TLS connection state
|
|
||||||
if tlsConn, ok := conn.(*tls.Conn); ok {
|
|
||||||
state := tlsConn.ConnectionState()
|
|
||||||
resp.TLS = &state
|
|
||||||
}
|
|
||||||
|
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@ package gemini
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"crypto/tls"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"strconv"
|
"strconv"
|
||||||
@ -37,10 +36,6 @@ type Response struct {
|
|||||||
// a zero-length body. It is the caller's responsibility to
|
// a zero-length body. It is the caller's responsibility to
|
||||||
// close Body.
|
// close Body.
|
||||||
Body io.ReadCloser
|
Body io.ReadCloser
|
||||||
|
|
||||||
// TLS contains information about the TLS connection on which the
|
|
||||||
// response was received. It is nil for unencrypted responses.
|
|
||||||
TLS *tls.ConnectionState
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReadResponse reads a Gemini response from the provided io.ReadCloser.
|
// ReadResponse reads a Gemini response from the provided io.ReadCloser.
|
||||||
|
Loading…
Reference in New Issue
Block a user