mirror of
https://github.com/nov/fb_graph2
synced 2023-03-27 23:22:15 -04:00
stop using httpclient's root cert set.
ref.) https://github.com/nahi/httpclient/issues/445
This commit is contained in:
parent
1647bc42bd
commit
0f63289c35
1 changed files with 5 additions and 0 deletions
|
@ -47,6 +47,11 @@ module FbGraph2
|
||||||
_http_client_ = HTTPClient.new(
|
_http_client_ = HTTPClient.new(
|
||||||
agent_name: "FbGraph2 (#{gem_version})"
|
agent_name: "FbGraph2 (#{gem_version})"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# NOTE: httpclient gem seems stopped maintaining root certtificate set, use OS default.
|
||||||
|
_http_client_.ssl_config.clear_cert_store
|
||||||
|
_http_client_.ssl_config.cert_store.set_default_paths
|
||||||
|
|
||||||
_http_client_.request_filter.delete_if do |filter|
|
_http_client_.request_filter.delete_if do |filter|
|
||||||
filter.is_a? HTTPClient::WWWAuth
|
filter.is_a? HTTPClient::WWWAuth
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue