if(specifiedHost != null)
{
int portIndex=specifiedHost.indexOf(':');
if(portIndex > 0)
specifiedHost=specifiedHost.substring(0,portIndex);
final ChunkSpec chunkSpec = config.getChunkSpec(specifiedHost, request.getClientPort(), request.getUrlPath());
if((chunkSpec != null) && (buffers.getLength() >= chunkSpec.getMinFileSize()))
{
chunkedSize = chunkSpec.getChunkSize(); // set chunking flag
extraHeaders.put(HTTPHeader.TRANSFER_ENCODING, "chunked");
}
}
// finally, generate the response headers and body