Oopsie
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@553861 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
668c8c99fb
commit
553a1b4cfd
|
@ -109,11 +109,8 @@ public class ClientGZipContentCompression {
|
|||
System.out.println(response.getStatusLine());
|
||||
System.out.println("----------------------------------------");
|
||||
|
||||
// Get hold of the response entity
|
||||
HttpEntity entity = response.getEntity();
|
||||
|
||||
// If the response does not enclose an entity, there is no need
|
||||
// to bother about connection release
|
||||
if (entity != null) {
|
||||
String content = EntityUtils.toString(entity);
|
||||
System.out.println(content);
|
||||
|
|
Loading…
Reference in New Issue