diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-14 06:40:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-14 06:40:55 +0000 |
commit | a1760485333d1061ec23385a6041388bf9e98068 (patch) | |
tree | 91fad68f293185c4ac2ee01e568b91896ae04bb9 /test/cgi | |
parent | c9d0b0f9f6e93bcf27f2ca0d74ed5518250b78a5 (diff) | |
download | ruby-a1760485333d1061ec23385a6041388bf9e98068.tar.gz |
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
Diffstat (limited to 'test/cgi')
-rw-r--r-- | test/cgi/test_cgi_multipart.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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 |