You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When HTTPotion.Base is extended to create an API client, that API client will not follow redirects even if :follow_redirects is set to true by process_options. For example, the below API client will not follow redirects:
defmodule RedirectingClient do
use HTTPotion.Base
def process_options(options) do
Keyword.put(options, :follow_redirects, true)
end
end
The text was updated successfully, but these errors were encountered:
ctreatma
added a commit
to ctreatma/httpotion
that referenced
this issue
Oct 15, 2016
API clients that are built by extending `HTTPotion.Base`
can use the `process_options` hook to ensure that all
redirects will be followed automatically. A typo in that
module caused `follow_redirects` to be ignored.
This adds a test to specifically cover the behavior of
an API client using `process_options` to inject a `true`
value for `follow_redirects`, and fixes the typo.
When
HTTPotion.Base
is extended to create an API client, that API client will not follow redirects even if:follow_redirects
is set totrue
byprocess_options
. For example, the below API client will not follow redirects:The text was updated successfully, but these errors were encountered: