You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/09/24 20:40:06 UTC
[camel] branch camel-3.7.x updated: CAMEL-14823: Fixed so
camel-servlet honours when stream caching is disabled.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.7.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.7.x by this push:
new b2e1442 CAMEL-14823: Fixed so camel-servlet honours when stream caching is disabled.
b2e1442 is described below
commit b2e1442567fd97eb16030e4146fce2808a584908
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Sep 24 22:38:32 2021 +0200
CAMEL-14823: Fixed so camel-servlet honours when stream caching is disabled.
---
.../src/main/java/org/apache/camel/http/common/HttpHelper.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpHelper.java b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpHelper.java
index d158501..f477d41 100644
--- a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpHelper.java
+++ b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpHelper.java
@@ -139,8 +139,7 @@ public final class HttpHelper {
*/
public static Object readRequestBodyFromServletRequest(HttpServletRequest request, Exchange exchange) throws IOException {
InputStream is = HttpConverter.toInputStream(request, exchange);
- // TODO should readRequestBodyFromInputStream() be invoked instead?
- return readResponseBodyFromInputStream(is, exchange);
+ return readRequestBodyFromInputStream(is, exchange);
}
/**