Skip to content

Commit

Permalink
Re re Fix rewrite tests for #5954
Browse files Browse the repository at this point in the history
Re re Fix rewrite tests for #5954. Restore setPathQuery behaviour to preserve queries if none are set.
  • Loading branch information
gregw committed Feb 17, 2021
1 parent dd5a565 commit 1e364ec
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -256,6 +256,9 @@ public void testSetters() throws Exception
assertThat(uri.getPathQuery(), is("/other;xxx/path;ppp?query"));

uri.setPathQuery(null);
assertEquals("http://host:8080?query", uri.toString()); // Yes silly result!

uri.setQuery(null);
assertEquals("http://host:8080", uri.toString());

uri.setPathQuery("/other;xxx/path;ppp?query");
Expand Down

0 comments on commit 1e364ec

Please sign in to comment.