Skip to content

Commit

Permalink
Remove honor_cipher_order option
Browse files Browse the repository at this point in the history
A new hackney version has been released which no longer sets
`honor_cipher_order` to `true` by default. This means we can remove our
workaround. Make sure to upgrade hackney for AppSignal to work.
  • Loading branch information
tombruijn committed Sep 23, 2019
1 parent 35535d3 commit 2a7b097
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions lib/appsignal/transmitter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ defmodule Appsignal.Transmitter do
[
ssl_options: [
cacertfile: ca_file_path,
ciphers: ciphers(),
honor_cipher_order: :undefined
ciphers: ciphers()
]
]}

Expand Down
3 changes: 1 addition & 2 deletions mix_helpers.exs
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ defmodule Mix.Appsignal.Helper do
options = [
ssl_options: [
cacertfile: priv_path("cacert.pem"),
ciphers: ciphers(),
honor_cipher_order: :undefined
ciphers: ciphers()
]
]

Expand Down
4 changes: 2 additions & 2 deletions test/appsignal/transmitter_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule Appsignal.TransmitterTest do
_url,
_headers,
_body,
[ssl_options: [cacertfile: ^path, ciphers: _, honor_cipher_order: :undefined]]
[ssl_options: [cacertfile: ^path, ciphers: _]]
] = Transmitter.request(:get, "https://example.com")
end

Expand All @@ -33,7 +33,7 @@ defmodule Appsignal.TransmitterTest do
_url,
_headers,
_body,
[ssl_options: [cacertfile: ^path, ciphers: _, honor_cipher_order: :undefined]]
[ssl_options: [cacertfile: ^path, ciphers: _]]
] = Transmitter.request(:get, "https://example.com")
end)
end
Expand Down

0 comments on commit 2a7b097

Please sign in to comment.