mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
comment refined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
06f0db50b2
commit
7adb25643e
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue