From 04c4d968f5c6c516edc3fbd9daffe258b426f2d2 Mon Sep 17 00:00:00 2001 From: Wenjie Guo Date: Mon, 2 Dec 2024 14:42:28 +0800 Subject: [PATCH] Revert "Add flush after copy during downloads" --- .../indy/core/bind/jaxrs/util/TransferStreamingOutput.java | 1 - 1 file changed, 1 deletion(-) 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() );