зеркало из https://github.com/github/ruby.git
[ruby/open-uri] document max_redirects option
https://github.com/ruby/open-uri/commit/4a247e5ca1
This commit is contained in:
Родитель
e62a0126cd
Коммит
72732af47e
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче