]> cat aescling's git repositories - mastodon.git/commit
Change max redirects followed to 2 (#5136)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 28 Sep 2017 21:20:08 +0000 (23:20 +0200)
committerGitHub <noreply@github.com>
Thu, 28 Sep 2017 21:20:08 +0000 (23:20 +0200)
commitd2f56d1cbc7ef985c2565ccc899a1a4f3c07e524
tree97d553351b6a5a4dda5bdc1ad9c0b39d9bd340ce
parentd0b4709b2a0bbd9579a3f115c3d200661ccb784a
Change max redirects followed to 2 (#5136)

I see no reason to allow more than that. Usually a redirect is
HTTP->HTTPS, then maybe URL structure changed, but more than that
is highly unlikely to be a legitimate use case.
app/lib/request.rb