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.
lolsob-rspec
Eugen Rochko 2017-09-28 23:20:08 +02:00 committed by GitHub
parent d55a6ae28a
commit 7143870551
1 changed files with 1 additions and 1 deletions

View File

@ -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