diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-09-28 23:20:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-28 23:20:08 +0200 |
commit | d2f56d1cbc7ef985c2565ccc899a1a4f3c07e524 (patch) | |
tree | 97d553351b6a5a4dda5bdc1ad9c0b39d9bd340ce /app/lib | |
parent | d0b4709b2a0bbd9579a3f115c3d200661ccb784a (diff) |
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.
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/request.rb b/app/lib/request.rb index b083edaf7..61311df6e 100644 --- a/app/lib/request.rb +++ b/app/lib/request.rb @@ -85,6 +85,6 @@ class Request end def http_client - HTTP.timeout(:per_operation, timeout).follow + HTTP.timeout(:per_operation, timeout).follow(max_hops: 2) end end |