Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
edgurgel authored Sep 30, 2019
1 parent 257ba94 commit 1b61003
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -28,7 +18,7 @@ First, add HTTPoison to your `mix.exs` dependencies:
```elixir
def deps do
[
{:httpoison, "~> 1.5"}
{:httpoison, "~> 1.6"}
]
end
```
Expand Down Expand Up @@ -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.

0 comments on commit 1b61003

Please sign in to comment.