summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-04 07:57:39 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-04 07:57:39 +0000
commite9939c69b124d9a70bb02b21fdd37a7a55d6d202 (patch)
tree5370371f5f46464a6c2595b1939032e83635bd65
parentc59f5837d2ee751c66c76ccaa17a2e45b9b21d5c (diff)
downloadruby-e9939c69b124d9a70bb02b21fdd37a7a55d6d202.tar.gz
ruby-e9939c69b124d9a70bb02b21fdd37a7a55d6d202.tar.xz
ruby-e9939c69b124d9a70bb02b21fdd37a7a55d6d202.zip
comments modified.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/open-uri.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index 75ce63a28..e1b8783f9 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