From b6457c4d27e0ed1c4fa5f97bb69da130cdb6bab5 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Thu, 15 Nov 2012 18:46:03 +0000 Subject: [PATCH] [HTTPCLIENT-1260] Javadoc incorrectly states StringBody(String)'s encoding uses the system default. Contributed by Tim and Gary Gregory git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1409922 13f79535-47bb-0310-9956-ffa450edef68 --- RELEASE_NOTES.txt | 4 ++++ .../java/org/apache/http/entity/mime/content/StringBody.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt index 5487769f5..510d38b31 100644 --- a/RELEASE_NOTES.txt +++ b/RELEASE_NOTES.txt @@ -1,6 +1,10 @@ Changes in trunk ------------------- +* [HTTPCLIENT-1260] + Javadoc incorrectly states StringBody(String)'s encoding uses the system default. + Contributed by Tim and Gary Gregory + * [HTTPCLIENT-1254] Redirect with underscore in hostname causes ProtocolException. Contributed by Oleg Kalnichevski diff --git a/httpmime/src/main/java/org/apache/http/entity/mime/content/StringBody.java b/httpmime/src/main/java/org/apache/http/entity/mime/content/StringBody.java index ffc63c645..782669e3e 100644 --- a/httpmime/src/main/java/org/apache/http/entity/mime/content/StringBody.java +++ b/httpmime/src/main/java/org/apache/http/entity/mime/content/StringBody.java @@ -134,7 +134,7 @@ public class StringBody extends AbstractContentBody { /** * Create a StringBody from the specified text. * The mime type is set to "text/plain". - * The hosts default charset is used. + * The {@linkplain Consts#ASCII ASCII} charset is used. * * @param text to be used for the body, not {@code null} * @throws UnsupportedEncodingException