Fixed paragraph overflow in tutorial PDF

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1570695 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2014-02-21 20:12:00 +00:00
parent 9a2c4bc01a
commit def5c423ab

View File

@ -394,7 +394,8 @@ if (entity != null) {
<classname>FileEntity</classname>.</para>
<programlisting><![CDATA[
File file = new File("somefile.txt");
FileEntity entity = new FileEntity(file, ContentType.create("text/plain", "UTF-8"));
FileEntity entity = new FileEntity(file,
ContentType.create("text/plain", "UTF-8"));
HttpPost httppost = new HttpPost("http://localhost/action.do");
httppost.setEntity(entity);