//this is a http 1.1 non-persistent connection
//we still know there is no content
Connectors.terminateRequest(exchange);
} else {
ConduitStreamSourceChannel sourceChannel = ((HttpServerConnection) exchange.getConnection()).getChannel().getSourceChannel();
sourceChannel.setConduit(new FinishableStreamSourceConduit(sourceChannel.getConduit(), new ConduitListener<FinishableStreamSourceConduit>() {
@Override
public void handleEvent(FinishableStreamSourceConduit channel) {
Connectors.terminateRequest(exchange);
}
}));