diff options
| author | Adnan Maolood <[email protected]> | 2020-11-01 15:14:56 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2020-11-01 15:14:56 -0500 |
| commit | cc372e8768a92ed7575bcc61a8a74fcfc6574bc7 (patch) | |
| tree | 51f6d7a0ea30cd9134ded0c1ec718aa4cda63431 /client.go | |
| parent | Update examples/auth.go (diff) | |
| download | go-gemini-cc372e8768a92ed7575bcc61a8a74fcfc6574bc7.tar.xz go-gemini-cc372e8768a92ed7575bcc61a8a74fcfc6574bc7.zip | |
Prevent infinite loop in client requests
Diffstat (limited to 'client.go')
| -rw-r--r-- | client.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -182,6 +182,8 @@ func (c *Client) getClientCertificate(req *Request) (*tls.Certificate, error) { for { cert, err := c.Certificates.Lookup(scope) if err == nil { + // Store the certificate + req.Certificate = cert return cert, err } if err == ErrCertificateExpired { |