headers.put(Headers.CONTENT_LENGTH, 0L);
conduit = new FixedLengthStreamSinkConduit(conduit, 0L, false, ! keepAlive, sendCompletedListener(request));
} else {
if (! Headers.IDENTITY.equals(transferEncoding)) {
headers.put(Headers.TRANSFER_ENCODING, Headers.CHUNKED.toString());
conduit = new ChunkedStreamSinkConduit(conduit, false, ! keepAlive, sendCompletedListener(request), this);
} else {
if(contentLength == -1L) {
conduit = new FinishableStreamSinkConduit(conduit, sendCompletedListener(request));
} else {
headers.put(Headers.CONTENT_LENGTH, contentLength);