From 1685204cc1030b2228725eb4ba157539634d5149 Mon Sep 17 00:00:00 2001 From: Peter Turcsanyi Date: Fri, 8 Jul 2022 18:40:36 +0200 Subject: [PATCH] NIFI-10206: Restored flushBuffer() call in HandleHttpResponse to avoid HTTP 404 This closes #6186 Signed-off-by: David Handermann --- .../org/apache/nifi/processors/standard/HandleHttpResponse.java | 1 + 1 file changed, 1 insertion(+) diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HandleHttpResponse.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HandleHttpResponse.java index eff8e4fbf0..96aa93a803 100644 --- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HandleHttpResponse.java +++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HandleHttpResponse.java @@ -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 {