Store request certificate to prevent infinite loop
This commit is contained in:
parent
b6475aa7d9
commit
5b3194695f
@ -125,6 +125,7 @@ func (c *Client) do(req *Request, via []*Request) (*Response, error) {
|
|||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
c.Certificates.Add(hostname+path, cert)
|
c.Certificates.Add(hostname+path, cert)
|
||||||
|
req.Certificate = &cert
|
||||||
return c.do(req, via)
|
return c.do(req, via)
|
||||||
}
|
}
|
||||||
return resp, ErrCertificateRequired
|
return resp, ErrCertificateRequired
|
||||||
|
Loading…
Reference in New Issue
Block a user