From a1760485333d1061ec23385a6041388bf9e98068 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 14 Dec 2015 06:40:55 +0000 Subject: test: use String#b instead of dup.force_encoding git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/cgi/test_cgi_multipart.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/cgi') diff --git a/test/cgi/test_cgi_multipart.rb b/test/cgi/test_cgi_multipart.rb index 989c054f8a..b3df694849 100644 --- a/test/cgi/test_cgi_multipart.rb +++ b/test/cgi/test_cgi_multipart.rb @@ -45,8 +45,7 @@ class MultiPart buf << "Content-Disposition: form-data: name=\"#{name}\"#{s}\r\n" buf << "Content-Type: #{content_type}\r\n" if content_type buf << "\r\n" - value = value.dup.force_encoding(::Encoding::ASCII_8BIT) if defined?(::Encoding) - buf << value + buf << value.b buf << "\r\n" return self end -- cgit v1.2.3