Skip to content

Commit 560fec5

Browse files
committed
Consistent flushing of given OutputStream
(cherry picked from commit f5d7161)
1 parent 8fe530c commit 560fec5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-core/src/main/java/org/springframework/util/StreamUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public static void copy(byte[] in, OutputStream out) throws IOException {
105105
Assert.notNull(out, "No OutputStream specified");
106106

107107
out.write(in);
108+
out.flush();
108109
}
109110

110111
/**

0 commit comments

Comments
 (0)