git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2005-02-05 14:13:47 +00:00
Родитель 06f0db50b2
Коммит 7adb25643e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

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