oscerd commented on code in PR #26892:
URL: https://github.com/apache/camel/pull/26892#discussion_r4130608660
##########
core/camel-util/src/main/java/org/apache/camel/util/IOHelper.java:
##########
@@ -266,7 +269,7 @@ public static int copy(
// flush at end, if we didn't do it during the writing
output.flush();
}
- return total;
+ return (int) Math.min(total, Integer.MAX_VALUE);
Review Comment:
Filed as [CAMEL-25133](https://issues.apache.org/jira/browse/CAMEL-25133):
size the non-chunked response from the `CachedOutputStream` as a `long` and use
`setContentLengthLong`.
_Claude Code on behalf of @oscerd_
--
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]