diff --git a/core/src/main/java/lucee/commons/net/http/httpclient/HTTPEngine4Impl.java b/core/src/main/java/lucee/commons/net/http/httpclient/HTTPEngine4Impl.java index 592b0a4c0e..ba9e54e1f2 100644 --- a/core/src/main/java/lucee/commons/net/http/httpclient/HTTPEngine4Impl.java +++ b/core/src/main/java/lucee/commons/net/http/httpclient/HTTPEngine4Impl.java @@ -551,7 +551,7 @@ else if (Decision.isCastableToBinary(value, false)) { return new EmptyHttpEntity(ct); } if (wasNull && !StringUtil.isEmpty(charset, true)) return new StringEntity(str, charset.trim()); - else return new StringEntity(str, ct); + return new StringEntity(str, ct); } } catch (Exception e) {