summaryrefslogtreecommitdiff
path: root/lib/uri/generic.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uri/generic.rb')
-rw-r--r--lib/uri/generic.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb
index 1056cfe..2c453dc 100644
--- a/lib/uri/generic.rb
+++ b/lib/uri/generic.rb
@@ -339,7 +339,7 @@ module URI
# see also URI::Generic.scheme=
#
def set_scheme(v)
- @scheme = v
+ @scheme = v ? v.downcase : v
end
protected :set_scheme