diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelOverHttp.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelOverHttp.java index 331a607427a..cae587c61b7 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelOverHttp.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelOverHttp.java @@ -127,7 +127,7 @@ public class HttpChannelOverHttp extends HttpChannel implements HttpParser.Reque break; case HOST: - if (!(field instanceof HostPortHttpField)) + if (!(field instanceof HostPortHttpField) && value!=null && !value.isEmpty()) field = new HostPortHttpField(value); break;