This commit is contained in:
Greg Wilkins 2017-10-20 11:09:20 +11:00
parent 06e00355a2
commit 3c6934c24b
1 changed files with 2 additions and 2 deletions

View File

@ -608,7 +608,7 @@ public class HttpURI
/* ------------------------------------------------------------ */
public void decodeQueryTo(MultiMap<String> parameters)
{
if (_query==_fragment)
if (_query==null)
return;
UrlEncoded.decodeUtf8To(_query,parameters);
}
@ -622,7 +622,7 @@ public class HttpURI
/* ------------------------------------------------------------ */
public void decodeQueryTo(MultiMap<String> parameters, Charset encoding) throws UnsupportedEncodingException
{
if (_query==_fragment)
if (_query==null)
return;
if (encoding==null || StandardCharsets.UTF_8.equals(encoding))