summaryrefslogtreecommitdiff
path: root/test/net/http
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-14 04:05:03 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-14 04:05:03 +0000
commitcba0d62d9119a6722a18b092fab070d4b3946674 (patch)
tree4d020cfe54496e0c1b566dd1b5e045cfca29da54 /test/net/http
parentb33cb3c017d7891505848dacd3c1e599733bf20b (diff)
* lib/net/http.rb (Net::HTTPRequest#send_request_body_data):
set binmode to tempfile. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/http')
-rw-r--r--test/net/http/test_http.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb
index a2ce962573..5e5cdab9ff 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -354,6 +354,7 @@ __EOM__
def test_set_form_with_file
require 'tempfile'
file = Tempfile.new('ruby-test')
+ file.binmode
file << $test_net_http_data
filename = File.basename(file.to_path)
data = [['file', file]]