-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates the
ssl
option to add settings rather than replace them
As per issue #458, passing the `ssl` option completely overrides all settings, rather than just overwriting the "sub"-setting that was specified. Eg `ssl: [{:verions, [:'tlsv1.2']}]` disabled all TLS settings rather than just requiring TLSv1.2. This commit changes HTTPoison's behaviour to merge the `ssl` settings with my best-guess at what the defaults are. Since it may be a breaking change, it also adds a new `ssl_override` option that can be used by anyone wishing to maintain the existing behaviour. This resolves #458.
- Loading branch information
1 parent
bdc6651
commit fa2238c
Showing
4 changed files
with
178 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters