davsclaus commented on code in PR #28362:
URL: https://github.com/apache/camel/pull/28362#discussion_r4388527030


##########
components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/AS2ClientConnection.java:
##########
@@ -277,18 +276,30 @@ public ClassicHttpResponse execute(ClassicHttpRequest 
request, HttpClientConnect
                         "Proxy " + route.getProxyHost().toHostString() + " 
refused to forward the request to "
                                         + targetHost.toHostString() + ": " + 
new StatusLine(response));
             }
+            if (response instanceof ClassicHttpResponse classicResponse && 
classicResponse.getEntity() != null) {

Review Comment:
   Applied in d2d1ed5b0783: only a streaming entity (one the parser left 
unread) is buffered now, and a parsed MDN is kept as it is. The camel-as2-api 
tests pass (116).
   
   _Claude Code on behalf of @davsclaus_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to