NIFI-10206: Restored flushBuffer() call in HandleHttpResponse to avoid HTTP 404

This closes #6186

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Peter Turcsanyi 2022-07-08 18:40:36 +02:00 committed by exceptionfactory
parent 46bb7d153d
commit 1685204cc1
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
1 changed files with 1 additions and 0 deletions

View File

@ -188,6 +188,7 @@ public class HandleHttpResponse extends AbstractProcessor {
try {
session.exportTo(flowFile, response.getOutputStream());
response.flushBuffer();
} catch (final ProcessException e) {
getLogger().error("Failed to respond to HTTP request for {} due to {}", new Object[]{flowFile, e});
try {