Skip to content

Commit 87dd62a

Browse files
committed
Merge branch '5.1.x'
2 parents c09e711 + 42fc4a3 commit 87dd62a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/StreamingResponseBodyReturnValueHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -108,6 +108,7 @@ public StreamingResponseBodyTask(OutputStream outputStream, StreamingResponseBod
108108
@Override
109109
public Void call() throws Exception {
110110
this.streamingBody.writeTo(this.outputStream);
111+
this.outputStream.flush();
111112
return null;
112113
}
113114
}

0 commit comments

Comments
 (0)