diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-01 16:00:37 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-01 16:00:37 +0000 |
commit | 17ff65205c1fe9634fea7b7ec5ddb767f3bf7235 (patch) | |
tree | 30c7a25de716418c6b443442910082e7200b9d93 /lib/uri | |
parent | 5ca2182b364dd094b1a769ac823f870dad40b547 (diff) |
* lib/uri/generic.rb (URI#normalize!): normalize case of
scheme. [ruby-core:27309]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/uri')
-rw-r--r-- | lib/uri/generic.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index 1ca970de74..14ca97301b 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -992,6 +992,9 @@ module URI if path && path == '' set_path('/') end + if scheme && scheme != scheme.downcase + set_scheme(self.scheme.downcase) + end if host && host != host.downcase set_host(self.host.downcase) end |