mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-17 15:35:20 +00:00
Convert control statement bodies to block.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1558060 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
746bb7aea2
commit
c7c70ec451
@ -132,8 +132,9 @@ public HttpCacheEntry(final Date requestDate, final Date responseDate, final Sta
|
|||||||
*/
|
*/
|
||||||
private Date parseDate() {
|
private Date parseDate() {
|
||||||
final Header dateHdr = getFirstHeader(HTTP.DATE_HEADER);
|
final Header dateHdr = getFirstHeader(HTTP.DATE_HEADER);
|
||||||
if (dateHdr == null)
|
if (dateHdr == null) {
|
||||||
return null;
|
return null;
|
||||||
|
}
|
||||||
return DateUtils.parseDate(dateHdr.getValue());
|
return DateUtils.parseDate(dateHdr.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -331,8 +331,9 @@ public int read() throws IOException {
|
|||||||
throw new IOException("Response has been closed");
|
throw new IOException("Response has been closed");
|
||||||
|
|
||||||
}
|
}
|
||||||
if (size.incrementAndGet() > maxlength.get())
|
if (size.incrementAndGet() > maxlength.get()) {
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
return 'y';
|
return 'y';
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user