[HTTPCLIENT-1260] Javadoc incorrectly states StringBody(String)'s encoding uses the system default. Contributed by Tim <tdhutt at gmail.com> and Gary Gregory <ggregory at apache.org>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1409922 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2012-11-15 18:46:03 +00:00
parent c017b6ba7b
commit b6457c4d27
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
Changes in trunk
-------------------
* [HTTPCLIENT-1260]
Javadoc incorrectly states StringBody(String)'s encoding uses the system default.
Contributed by Tim <tdhutt at gmail.com> and Gary Gregory <ggregory at apache.org>
* [HTTPCLIENT-1254] Redirect with underscore in hostname causes ProtocolException.
Contributed by Oleg Kalnichevski <olegk at apache.org>

View File

@ -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