-
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.
[ci skip]
- Loading branch information
Showing
1 changed file
with
2 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,16 +5,6 @@ HTTP client for Elixir, based on | |
[HTTPotion](https://github.com/myfreeweb/httpotion) | ||
([documentation](http://hexdocs.pm/httpoison/)). | ||
|
||
## Note about broken ssl in Erlang 19 | ||
Until this [issue](https://bugs.erlang.org/browse/ERL-192) is fixed ssl handshakes may fail. If you receive this error: | ||
``` | ||
{:error, %HTTPoison.Error{id: nil, reason: :closed}} | ||
``` | ||
Try the following fix: | ||
```elixir | ||
HTTPoison.get("https://example.com/", [], [ ssl: [{:versions, [:'tlsv1.2']}] ]) | ||
``` | ||
|
||
## But... why something so similar to HTTPotion? | ||
|
||
HTTPoison uses [hackney](https://github.com/benoitc/hackney) to execute HTTP requests instead of ibrowse. I like hackney :thumbsup: | ||
|
@@ -28,7 +18,7 @@ First, add HTTPoison to your `mix.exs` dependencies: | |
```elixir | ||
def deps do | ||
[ | ||
{:httpoison, "~> 1.5"} | ||
{:httpoison, "~> 1.6"} | ||
] | ||
end | ||
``` | ||
|
@@ -292,7 +282,7 @@ For more complex queries regarding multipart response parsing, you should follow | |
|
||
## License | ||
|
||
Copyright © 2013-2014 Eduardo Gurgel <[email protected]> | ||
Copyright © 2013-2019 Eduardo Gurgel <[email protected]> | ||
|
||
This work is free. You can redistribute it and/or modify it under the | ||
terms of the MIT License. See the LICENSE file for more details. |