From 72732af47eeedbca304e39c3b8c3820ed19c6d81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pinheiro?= Date: Sat, 9 Mar 2024 15:58:03 +0000 Subject: [PATCH] [ruby/open-uri] document max_redirects option https://github.com/ruby/open-uri/commit/4a247e5ca1 --- lib/open-uri.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 9631e35e41..91eb61e54a 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -746,6 +746,12 @@ module OpenURI # Using +true+ also means that redirections between http and ftp are # permitted. # + # [:max_redirects] + # Synopsis: + # :max_redirects=>int + # + # Number of HTTP redirects allowed before OpenURI::TooManyRedirects is raised. + # The default is 64. def open(*rest, &block) OpenURI.open_uri(self, *rest, &block) end