From ccd7aa4f147febff8ae0ecb65e1d09ea113bbc99 Mon Sep 17 00:00:00 2001 From: Eamonn Webster Date: Thu, 24 Oct 2013 13:02:27 +0100 Subject: [PATCH] removing meta_add_field breaks stuff --- lib/open-uri.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 32f0662..b1a2538 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'] -- 1.8.4