We needed to increase the redirect_limit in RedirectFollower when resolving open graph requests. Unfortunately, there was no way to pass a different limit through OpenGraph.new.
This PR checks for the existence of options[:redirect_limit] when initializing RedirectFollower. If present, it uses the value in the options hash instead of REDIRECT_DEFAULT_LIMIT.
We needed to increase the
redirect_limit
inRedirectFollower
when resolving open graph requests. Unfortunately, there was no way to pass a different limit throughOpenGraph.new
.This PR checks for the existence of
options[:redirect_limit]
when initializingRedirectFollower
. If present, it uses the value in theoptions
hash instead ofREDIRECT_DEFAULT_LIMIT
.