if (request instanceof HttpEntityEnclosingRequest) {
long len = this.contentLenStrategy.determineLength(request);
if (len == ContentLengthStrategy.CHUNKED) {
this.in = new ChunkedInputStream(this.datareceiver);
} else if (len == ContentLengthStrategy.IDENTITY) {
this.in = new HttpDataInputStream(this.datareceiver);
} else {
this.in = new ContentLengthInputStream(datareceiver, len);
}
}
return request;