mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
Make sure root certs are unique.
This commit is contained in:
parent
5835159573
commit
6b706194b2
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@ module RestClient
|
|||
# set_default_paths() doesn't do anything on Windows, so look up
|
||||
# certificates using the win32 API.
|
||||
if RestClient::Windows.windows?
|
||||
RestClient::Windows::RootCerts.instance.each do |cert|
|
||||
RestClient::Windows::RootCerts.instance.to_a.uniq.each do |cert|
|
||||
cert_store.add_cert(cert)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue