diff options
author | rinpatch <rinpatch@sdf.org> | 2020-05-30 13:59:04 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-05-30 15:36:55 +0300 |
commit | 0cb7b0ea8477bdd7af2e5e9071843be5b8623dff (patch) | |
tree | 3d22c11ddc490f742836472f5c7484444764fc13 /test | |
parent | d2a1975e565e2e83859a607af29320226877cc4d (diff) | |
download | pleroma-0cb7b0ea8477bdd7af2e5e9071843be5b8623dff.tar.gz |
hackney adapter helper: support tlsv1.3 and remove custom opts
- partitial_chain is no longer exported, but it seems to be the default anyway.
- The bug that caused sni to not be sent automatically seems to be fixed -
https://github.com/benoitc/hackney/issues/612
Diffstat (limited to 'test')
-rw-r--r-- | test/http/adapter_helper/hackney_test.exs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/http/adapter_helper/hackney_test.exs b/test/http/adapter_helper/hackney_test.exs index 3f7e708e0..f2361ff0b 100644 --- a/test/http/adapter_helper/hackney_test.exs +++ b/test/http/adapter_helper/hackney_test.exs @@ -31,17 +31,5 @@ defmodule Pleroma.HTTP.AdapterHelper.HackneyTest do assert opts[:b] == 1 refute Keyword.has_key?(opts, :proxy) end - - test "add opts for https" do - uri = URI.parse("https://domain.com") - - opts = Hackney.options(uri) - - assert opts[:ssl_options] == [ - partial_chain: &:hackney_connect.partial_chain/1, - versions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"], - server_name_indication: 'domain.com' - ] - end end end |