summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-26 08:49:58 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-26 08:49:58 +0000
commit11efba7e5699baaec7fd2b01e772ca64f80e7f24 (patch)
treea0d673c021350425c6e2ba132452bacdacd39b09
parentb848aad5bf2c4379ca48ff69b4188aa614a18ee9 (diff)
* lib/open-uri.rb (meta_add_field): : Re-implemented.
[ruby-core:58017] [Bug #9051] patch by Eamonn Webster. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/open-uri.rb4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 99c616f1eb..0bfae76310 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Oct 26 17:48:54 2013 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb (meta_add_field): : Re-implemented.
+ [ruby-core:58017] [Bug #9051] patch by Eamonn Webster.
+
Sat Oct 26 14:35:09 2013 Koichi Sasada <ko1@atdot.net>
* gc.c (gc_profile_dump_on): use "Page" terminology.
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index 32f0662afc..b1a253841d 100644
--- a/lib/open-uri.rb
+++ b/lib/open-uri.rb
@@ -462,6 +462,10 @@ module OpenURI
meta_setup_encoding if name == 'content-type'
end
+ def meta_add_field(name, value) # :nodoc:
+ meta_add_field2(name, [value])
+ end
+
# returns a Time that represents the Last-Modified field.
def last_modified
if vs = @metas['last-modified']