This is an automated email from the ASF dual-hosted git repository. elecharny pushed a commit to branch 2.0.X in repository https://gitbox.apache.org/repos/asf/mina.git
The following commit(s) were added to refs/heads/2.0.X by this push: new 03c8c31 Backported Colm patch 03c8c31 is described below commit 03c8c310ba57d6e55220474e006b3435dbbd7ce0 Author: emmanuel lecharny <elecha...@apache.org> AuthorDate: Tue Feb 8 02:17:14 2022 +0100 Backported Colm patch --- .../main/java/org/apache/mina/proxy/handlers/http/HttpProxyRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mina-core/src/main/java/org/apache/mina/proxy/handlers/http/HttpProxyRequest.java b/mina-core/src/main/java/org/apache/mina/proxy/handlers/http/HttpProxyRequest.java index 212b20d..e8046b7 100644 --- a/mina-core/src/main/java/org/apache/mina/proxy/handlers/http/HttpProxyRequest.java +++ b/mina-core/src/main/java/org/apache/mina/proxy/handlers/http/HttpProxyRequest.java @@ -290,7 +290,7 @@ public class HttpProxyRequest extends ProxyRequest { } } - if (!hostHeaderFound && getHttpVersion() == HttpProxyConstants.HTTP_1_1) { + if (!hostHeaderFound && HttpProxyConstants.HTTP_1_1.equals(getHttpVersion())) { sb.append("Host: ").append(getHost()).append(HttpProxyConstants.CRLF); } }