[前][次][番号順一覧][スレッド一覧]

ruby-changes:31351

From: akr <ko1@a...>
Date: Sat, 26 Oct 2013 17:50:05 +0900 (JST)
Subject: [ruby-changes:31351] akr:r43430 (trunk): * lib/open-uri.rb (meta_add_field): : Re-implemented.

akr	2013-10-26 17:49:58 +0900 (Sat, 26 Oct 2013)

  New Revision: 43430

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43430

  Log:
    * lib/open-uri.rb (meta_add_field): : Re-implemented.
       [ruby-core:58017] [Bug #9051] patch by Eamonn Webster.

  Modified files:
    trunk/ChangeLog
    trunk/lib/open-uri.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43429)
+++ ChangeLog	(revision 43430)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Oct 26 17:48:54 2013  Tanaka Akira  <akr@f...>
+
+	* 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@a...>
 
 	* gc.c (gc_profile_dump_on): use "Page" terminology.
Index: lib/open-uri.rb
===================================================================
--- lib/open-uri.rb	(revision 43429)
+++ lib/open-uri.rb	(revision 43430)
@@ -462,6 +462,10 @@ module OpenURI https://github.com/ruby/ruby/blob/trunk/lib/open-uri.rb#L462
       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']

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]