if (entity.isChunked() && ver.greaterEquals(HttpVersion.HTTP_1_1)) {
this.out = new ChunkedOutputStream(this.datatransmitter);
} else if (len >= 0) {
this.out = new ContentLengthOutputStream(this.datatransmitter, len);
} else {
this.out = new IdentityOutputStream(this.datatransmitter);
}
} else {
this.datatransmitter.flush();
}
}