From 000444c93dd4b637bf0effcd1ffad8e60574cc4a Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Mon, 18 Feb 2008 11:59:58 +0000 Subject: [PATCH] Fix for the failing test case that makes use of the default platform charset git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@628690 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/http/entity/mime/TestMultipartForm.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module-httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartForm.java b/module-httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartForm.java index f0708252a..edf97ee13 100644 --- a/module-httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartForm.java +++ b/module-httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartForm.java @@ -156,7 +156,8 @@ public class TestMultipartForm extends TestCase { String expected = "\r\n" + "--foo\r\n" + "Content-Disposition: form-data; name=\"field1\"\r\n" + - "Content-Type: text/plain; charset=UTF-8\r\n" + + "Content-Type: text/plain; charset=" + + Charset.defaultCharset() + "\r\n" + "Content-Transfer-Encoding: 8bit\r\n" + "\r\n" + "this stuff\r\n" + @@ -168,7 +169,8 @@ public class TestMultipartForm extends TestCase { "that stuff\r\n" + "--foo\r\n" + "Content-Disposition: form-data; name=\"field3\"\r\n" + - "Content-Type: text/plain; charset=UTF-8\r\n" + + "Content-Type: text/plain; charset=" + + Charset.defaultCharset() + "\r\n" + "Content-Transfer-Encoding: 8bit\r\n" + "\r\n" + "all kind of stuff\r\n" +