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 | |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/uri/generic.rb | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Fri Jan 1 23:17:49 2010 NARUSE, Yui <naruse@ruby-lang.org> + + * lib/uri/generic.rb (URI#normalize!): normalize case of + scheme. [ruby-core:27309] + Fri Jan 1 00:47:57 2010 Akinori MUSHA <knu@iDaemons.org> * ext/digest/digest.c (rb_digest_instance_method_unimpl): Suppress 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 |