aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2020-11-01 15:14:56 -0500
committerAdnan Maolood <[email protected]>2020-11-01 15:14:56 -0500
commitcc372e8768a92ed7575bcc61a8a74fcfc6574bc7 (patch)
tree51f6d7a0ea30cd9134ded0c1ec718aa4cda63431 /client.go
parentUpdate examples/auth.go (diff)
downloadgo-gemini-cc372e8768a92ed7575bcc61a8a74fcfc6574bc7.tar.xz
go-gemini-cc372e8768a92ed7575bcc61a8a74fcfc6574bc7.zip
Prevent infinite loop in client requests
Diffstat (limited to 'client.go')
-rw-r--r--client.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/client.go b/client.go
index 76692b8..7614968 100644
--- a/client.go
+++ b/client.go
@@ -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 {