xxxyyyz commented on code in PR #17967:
URL: https://github.com/apache/camel/pull/17967#discussion_r2073142673
##########
components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/entity/TextPlainEntity.java:
##########
@@ -54,7 +54,7 @@ public void writeTo(OutputStream outstream) throws
IOException {
}
// Write out content
-
canonicalOutstream.write(content.getBytes(StandardCharsets.US_ASCII), 0,
content.length());
+ outstream.write(content.getBytes(StandardCharsets.US_ASCII), 0,
content.length());
Review Comment:
From my understanding, the request body should never be filtered.
It leads to the unwanted behavior that LF characters in request body get
substituted by CRLF.
Using the original outstream in write() prevents filtering, thus leaving the
request body unchanged.
--
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]