From 11efba7e5699baaec7fd2b01e772ca64f80e7f24 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 26 Oct 2013 08:49:58 +0000 Subject: * 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 --- lib/open-uri.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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'] -- cgit v1.2.3