зеркало из https://github.com/github/ruby.git
comment refined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
06f0db50b2
Коммит
7adb25643e
|
@ -530,8 +530,8 @@ module URI
|
|||
options.each {|k, v| header[k] = v if String === k }
|
||||
|
||||
if uri.respond_to? :host
|
||||
# According to RFC2616 14.23, Host: request-header field should be set
|
||||
# an origin server.
|
||||
# According to RFC2616 14.23, Host: request-header field should be
|
||||
# the origin server.
|
||||
# But net/http wrongly set a proxy server if an absolute URI is
|
||||
# specified as a request URI.
|
||||
# So open-uri override it here explicitly.
|
||||
|
|
Загрузка…
Ссылка в новой задаче