1
0
Fork 0
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:
Andy Brody 2014-03-31 21:09:11 -07:00
parent 5835159573
commit 6b706194b2

View file

@ -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