diff --git a/README.md b/README.md index 1fd3106..65498d4 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,15 @@ Faraday.new(url: url) do |faraday| end ``` +## Upgrading from Faraday 1.x + +If you still use Faraday 1.x, and have uninstalled the `faraday_middleware` gem, all you have to change is: + +```diff +- conn.use FaradayMiddleware::FollowRedirects ++ conn.use Faraday::FollowRedirects::Middleware +``` + ## Development After checking out the repo, run `bin/setup` to install dependencies.