* 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
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user