From 5e59422f414ad385754c9e4f7ce525c8638e2c2c Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 4 Apr 2004 07:57:39 +0000 Subject: comments modified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/open-uri.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/open-uri.rb') diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 75ce63a288..e1b8783f9d 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -172,8 +172,8 @@ module OpenURI } if redirect if redirect.relative? - # Although it violates RFC 2616, Location: field may have relative - # URI. It is converted to absolute URI using uri. + # Although it violates RFC2616, Location: field may have relative + # URI. It is converted to absolute URI using uri as a base URI. redirect = uri + redirect end unless OpenURI.redirectable?(uri, redirect) @@ -282,7 +282,7 @@ module OpenURI def content_type_parse # :nodoc: v = @meta['content-type'] - # The last (?:;#{RE_LWS}?)? matches extra ";" which is not permitted by RFC2045. + # The last (?:;#{RE_LWS}?)? matches extra ";" which violates RFC2045. if v && %r{\A#{RE_LWS}?(#{RE_TOKEN})#{RE_LWS}?/(#{RE_TOKEN})#{RE_LWS}?(#{RE_PARAMETERS})(?:;#{RE_LWS}?)?\z}no =~ v type = $1.downcase subtype = $2.downcase -- cgit v1.2.3