Ensure flush after StreamingResponseBody

Closes gh-22813
This commit is contained in:
Rossen Stoyanchev 2019-04-18 22:49:23 -04:00
parent 1a97a26eb7
commit 42fc4a35d5
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -108,6 +108,7 @@ public class StreamingResponseBodyReturnValueHandler implements HandlerMethodRet
@Override
public Void call() throws Exception {
this.streamingBody.writeTo(this.outputStream);
this.outputStream.flush();
return null;
}
}