diff --git a/bindings/jaxrs/src/main/java/org/commonjava/indy/core/bind/jaxrs/util/TransferStreamingOutput.java b/bindings/jaxrs/src/main/java/org/commonjava/indy/core/bind/jaxrs/util/TransferStreamingOutput.java index 8e409f2776..ecc28839f0 100644 --- a/bindings/jaxrs/src/main/java/org/commonjava/indy/core/bind/jaxrs/util/TransferStreamingOutput.java +++ b/bindings/jaxrs/src/main/java/org/commonjava/indy/core/bind/jaxrs/util/TransferStreamingOutput.java @@ -65,7 +65,6 @@ public void write( final OutputStream out ) { CountingOutputStream cout = new CountingOutputStream( out ); IOUtils.copy( stream, cout ); - cout.flush(); // ensure any remaining data is written to the output stream Logger logger = LoggerFactory.getLogger( getClass() ); logger.trace( "Wrote: {} bytes", cout.getByteCount() );