You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/04/13 15:55:17 UTC
[camel] branch main updated: CAMEL-17962: fix build error caused by cleanup of duplicated charset features in camel-netty
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new be4709dafdd CAMEL-17962: fix build error caused by cleanup of duplicated charset features in camel-netty
be4709dafdd is described below
commit be4709dafddcc0943329ce13e57e45b2aadf460d
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Wed Apr 13 13:47:59 2022 +0200
CAMEL-17962: fix build error caused by cleanup of duplicated charset features in camel-netty
---
.../netty/http/NettyHttpOperationFailedException.java | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpOperationFailedException.java b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpOperationFailedException.java
index 87c65e0265f..0651e2c9948 100644
--- a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpOperationFailedException.java
+++ b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpOperationFailedException.java
@@ -16,8 +16,6 @@
*/
package org.apache.camel.component.netty.http;
-import java.io.UnsupportedEncodingException;
-
import io.netty.handler.codec.http.HttpContent;
import org.apache.camel.CamelException;
import org.apache.camel.component.netty.NettyConverter;
@@ -47,13 +45,7 @@ public class NettyHttpOperationFailedException extends CamelException {
this.redirectLocation = location;
this.content = content;
- String str = "";
- try {
- str = NettyConverter.toString(content.content(), null);
- } catch (UnsupportedEncodingException e) {
- // ignore
- }
- this.contentAsString = str;
+ this.contentAsString = NettyConverter.toString(content.content(), null);
}
public String getUri() {