This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 1685204cc1 NIFI-10206: Restored flushBuffer() call in 
HandleHttpResponse to avoid HTTP 404
1685204cc1 is described below

commit 1685204cc1030b2228725eb4ba157539634d5149
Author: Peter Turcsanyi <[email protected]>
AuthorDate: Fri Jul 8 18:40:36 2022 +0200

    NIFI-10206: Restored flushBuffer() call in HandleHttpResponse to avoid HTTP 
404
    
    This closes #6186
    
    Signed-off-by: David Handermann <[email protected]>
---
 .../java/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 {

Reply via email to