diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-19 02:34:47 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-19 02:34:47 +0000 |
commit | 8c7310e71398b3bf76c62ecd32db2340733a4769 (patch) | |
tree | 6cabc4566e95bea8010d1d81e656aa6a56f5a12a /lib/uri/rfc2396_parser.rb | |
parent | 1443776cc9786e06764b457e14a0ed6a831b0a70 (diff) | |
download | ruby-8c7310e71398b3bf76c62ecd32db2340733a4769.tar.gz |
* lib/uri/rfc2396_parser.rb (initialize_pattern):
URI::Generic.build should accept port as a string.
pattern[:PORT] is not defined for long.
by Dave Slutzkin <daveslutzkin@fastmail.fm>
https://github.com/ruby/ruby/pull/804 fix GH-804
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/uri/rfc2396_parser.rb')
-rw-r--r-- | lib/uri/rfc2396_parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uri/rfc2396_parser.rb b/lib/uri/rfc2396_parser.rb index c192f65ec1..a8af37502a 100644 --- a/lib/uri/rfc2396_parser.rb +++ b/lib/uri/rfc2396_parser.rb @@ -401,7 +401,7 @@ module URI # host = hostname | IPv4address | IPv6reference (RFC 2732) ret[:HOST] = host = "(?:#{hostname}|#{ipv4addr}|#{ipv6ref})" # port = *digit - port = '\d*' + ret[:PORT] = port = '\d*' # hostport = host [ ":" port ] ret[:HOSTPORT] = hostport = "#{host}(?::#{port})?" |