714715716717718719720721722723724
VoidResponseHandler handler = new VoidResponseHandler(); try { handler.handleResponse(response); // Will consume the entity when the stream is closed. return new ConsumingInputStream(response); } catch (IOException ex) { get.abort(); throw ex;