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

ruby-changes:26923

From: akr <ko1@a...>
Date: Tue, 29 Jan 2013 21:42:08 +0900 (JST)
Subject: [ruby-changes:26923] akr:r38975 (trunk): * lib/net/http/generic_request.rb (encode_multipart_form_data): remove

akr	2013-01-29 21:41:56 +0900 (Tue, 29 Jan 2013)

  New Revision: 38975

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

  Log:
    * lib/net/http/generic_request.rb (encode_multipart_form_data): remove
      tempfile explicitly.

  Modified files:
    trunk/ChangeLog
    trunk/lib/net/http/generic_request.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38974)
+++ ChangeLog	(revision 38975)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jan 29 21:40:12 2013  Tanaka Akira  <akr@f...>
+
+	* lib/net/http/generic_request.rb (encode_multipart_form_data): remove
+	  tempfile explicitly.
+
 Tue Jan 29 19:27:18 2013  Benoit Daloze  <eregontp@g...>
 
 	* array.c: Improve documentation about
Index: lib/net/http/generic_request.rb
===================================================================
--- lib/net/http/generic_request.rb	(revision 38974)
+++ lib/net/http/generic_request.rb	(revision 38975)
@@ -207,6 +207,7 @@ class Net::HTTPGenericRequest https://github.com/ruby/ruby/blob/trunk/lib/net/http/generic_request.rb#L207
       self.content_length = file.size
       write_header sock, ver, path
       IO.copy_stream(file, sock)
+      file.close(true)
     end
   end
 

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

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