Set an appropriate Content Size when using non-DNS resolves.

This commit is contained in:
Andrew Jackson
2017-10-11 17:08:15 +01:00
parent a5381440fd
commit 46fa54da0c
@@ -184,6 +184,7 @@ public class FetchDNS extends Processor {
if (address != null) {
targetHost.setIP(address, DEFAULT_TTL_FOR_NON_DNS_RESOLVES);
curi.setFetchStatus(S_GETBYNAME_SUCCESS);
curi.setContentSize(0);
if (logger.isLoggable(Level.FINE)) {
logger.fine("Found address for " + dnsName +
" using native dns.");