mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
d5b7fc432f
commit
64dbc10b5f
2 changed files with 6 additions and 0 deletions
|
@ -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>
|
||||
|
||||
* array.c: Improve documentation about
|
||||
|
|
|
@ -207,6 +207,7 @@ class Net::HTTPGenericRequest
|
|||
self.content_length = file.size
|
||||
write_header sock, ver, path
|
||||
IO.copy_stream(file, sock)
|
||||
file.close(true)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue