assertEquals(-1, entity.getContentLength());
assertFalse(entity.isChunked());
}
public void testEntityWithUnsupportedTransferEncoding() throws Exception {
HttpDataReceiver datareceiver = new HttpDataReceiverMockup("0\r\n", "US-ASCII");
HttpMessage message = new HttpMessageMockup();
// lenient mode
message.getParams().setBooleanParameter(HttpProtocolParams.STRICT_TRANSFER_ENCODING, false);
message.addHeader(new Header("Content-Type", "unknown"));