diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/HttpURI.java b/jetty-http/src/main/java/org/eclipse/jetty/http/HttpURI.java index 4e1464ef6a9..fd5decf9e3d 100644 --- a/jetty-http/src/main/java/org/eclipse/jetty/http/HttpURI.java +++ b/jetty-http/src/main/java/org/eclipse/jetty/http/HttpURI.java @@ -608,7 +608,7 @@ public class HttpURI /* ------------------------------------------------------------ */ public void decodeQueryTo(MultiMap parameters) { - if (_query==_fragment) + if (_query==null) return; UrlEncoded.decodeUtf8To(_query,parameters); } @@ -622,7 +622,7 @@ public class HttpURI /* ------------------------------------------------------------ */ public void decodeQueryTo(MultiMap parameters, Charset encoding) throws UnsupportedEncodingException { - if (_query==_fragment) + if (_query==null) return; if (encoding==null || StandardCharsets.UTF_8.equals(encoding))