Skip to content

Commit

Permalink
Fixing broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
joakime committed Jan 23, 2025
1 parent 4fdcec2 commit 8dd3a0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ protected boolean handle(Response response, Callback callback)
if (targetQueryIdx != (-1))
{
targetPath = target.substring(0, targetQueryIdx);
targetQuery = target.substring(targetQueryIdx);
targetQuery = target.substring(targetQueryIdx + 1);
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void testMatchOnlyPathLocationWithQueryAddQueries() throws Exception

HttpTester.Response response = HttpTester.parseResponse(_connector.getResponse(request));
assertEquals(HttpStatus.MOVED_PERMANENTLY_301, response.getStatus());
assertEquals("http://www.mortbay.org/api/rest/foo?v=old&id=100&sort=date", response.get(HttpHeader.LOCATION));
assertEquals("http://www.mortbay.org/api/rest/foo?id=100&sort=date&v=old", response.get(HttpHeader.LOCATION));
}

@Test
Expand Down

0 comments on commit 8dd3a0a

Please sign in to comment.