Store request certificate to prevent infinite loop

This commit is contained in:
Adnan Maolood 2020-11-02 13:47:07 -05:00
parent b6475aa7d9
commit 5b3194695f

View File

@ -125,6 +125,7 @@ func (c *Client) do(req *Request, via []*Request) (*Response, error) {
return resp, err
}
c.Certificates.Add(hostname+path, cert)
req.Certificate = &cert
return c.do(req, via)
}
return resp, ErrCertificateRequired