aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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']