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
This commit is contained in:
parent
1fd17159fb
commit
000444c93d
|
@ -156,7 +156,8 @@ public class TestMultipartForm extends TestCase {
|
||||||
String expected = "\r\n" +
|
String expected = "\r\n" +
|
||||||
"--foo\r\n" +
|
"--foo\r\n" +
|
||||||
"Content-Disposition: form-data; name=\"field1\"\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" +
|
"Content-Transfer-Encoding: 8bit\r\n" +
|
||||||
"\r\n" +
|
"\r\n" +
|
||||||
"this stuff\r\n" +
|
"this stuff\r\n" +
|
||||||
|
@ -168,7 +169,8 @@ public class TestMultipartForm extends TestCase {
|
||||||
"that stuff\r\n" +
|
"that stuff\r\n" +
|
||||||
"--foo\r\n" +
|
"--foo\r\n" +
|
||||||
"Content-Disposition: form-data; name=\"field3\"\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" +
|
"Content-Transfer-Encoding: 8bit\r\n" +
|
||||||
"\r\n" +
|
"\r\n" +
|
||||||
"all kind of stuff\r\n" +
|
"all kind of stuff\r\n" +
|
||||||
|
|
Loading…
Reference in New Issue