summaryrefslogtreecommitdiff
path: root/lib
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 /lib
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
Diffstat (limited to 'lib')
-rw-r--r--lib/open-uri.rb4
1 files changed, 4 insertions, 0 deletions
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']