Skip to content

Commit

Permalink
Merge pull request edgurgel#190 from Ch4s3/patch-1
Browse files Browse the repository at this point in the history
Add temporary note about ssl issue with Erlang 19
  • Loading branch information
edgurgel authored Nov 16, 2016
2 parents cd2ac03 + 42efbe4 commit 108a298
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ 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:
Expand Down

0 comments on commit 108a298

Please sign in to comment.