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

tempfile explicitly.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-01-29 12:41:56 +00:00
parent d5b7fc432f
commit 64dbc10b5f
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Tue Jan 29 21:40:12 2013 Tanaka Akira <akr@fsij.org>
* lib/net/http/generic_request.rb (encode_multipart_form_data): remove
tempfile explicitly.
Tue Jan 29 19:27:18 2013 Benoit Daloze <eregontp@gmail.com> Tue Jan 29 19:27:18 2013 Benoit Daloze <eregontp@gmail.com>
* array.c: Improve documentation about * array.c: Improve documentation about

View File

@ -207,6 +207,7 @@ class Net::HTTPGenericRequest
self.content_length = file.size self.content_length = file.size
write_header sock, ver, path write_header sock, ver, path
IO.copy_stream(file, sock) IO.copy_stream(file, sock)
file.close(true)
end end
end end