Removed a code line from examples some users found confusing
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@698722 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
726aa572bf
commit
9f8564219e
|
@ -55,7 +55,6 @@ public class ClientAbortMethod {
|
|||
System.out.println(response.getStatusLine());
|
||||
if (entity != null) {
|
||||
System.out.println("Response content length: " + entity.getContentLength());
|
||||
System.out.println("Chunked?: " + entity.isChunked());
|
||||
}
|
||||
System.out.println("----------------------------------------");
|
||||
|
||||
|
|
|
@ -61,7 +61,6 @@ public class ClientAuthentication {
|
|||
System.out.println(response.getStatusLine());
|
||||
if (entity != null) {
|
||||
System.out.println("Response content length: " + entity.getContentLength());
|
||||
System.out.println("Chunked?: " + entity.isChunked());
|
||||
}
|
||||
if (entity != null) {
|
||||
entity.consumeContent();
|
||||
|
|
|
@ -76,7 +76,6 @@ public class ClientCustomContext {
|
|||
System.out.println(response.getStatusLine());
|
||||
if (entity != null) {
|
||||
System.out.println("Response content length: " + entity.getContentLength());
|
||||
System.out.println("Chunked?: " + entity.isChunked());
|
||||
}
|
||||
List<Cookie> cookies = cookieStore.getCookies();
|
||||
for (int i = 0; i < cookies.size(); i++) {
|
||||
|
|
|
@ -72,7 +72,6 @@ public class ClientCustomSSL {
|
|||
System.out.println(response.getStatusLine());
|
||||
if (entity != null) {
|
||||
System.out.println("Response content length: " + entity.getContentLength());
|
||||
System.out.println("Chunked?: " + entity.isChunked());
|
||||
}
|
||||
if (entity != null) {
|
||||
entity.consumeContent();
|
||||
|
|
|
@ -95,7 +95,6 @@ public class ClientPreemptiveBasicAuthentication {
|
|||
System.out.println(response.getStatusLine());
|
||||
if (entity != null) {
|
||||
System.out.println("Response content length: " + entity.getContentLength());
|
||||
System.out.println("Chunked?: " + entity.isChunked());
|
||||
entity.consumeContent();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -101,7 +101,6 @@ public class ClientPreemptiveDigestAuthentication {
|
|||
System.out.println(response.getStatusLine());
|
||||
if (entity != null) {
|
||||
System.out.println("Response content length: " + entity.getContentLength());
|
||||
System.out.println("Chunked?: " + entity.isChunked());
|
||||
entity.consumeContent();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -70,7 +70,6 @@ public class ClientProxyAuthentication {
|
|||
System.out.println(response.getStatusLine());
|
||||
if (entity != null) {
|
||||
System.out.println("Response content length: " + entity.getContentLength());
|
||||
System.out.println("Chunked?: " + entity.isChunked());
|
||||
}
|
||||
if (entity != null) {
|
||||
entity.consumeContent();
|
||||
|
|
Loading…
Reference in New Issue