Skip to content

Commit

Permalink
Cleanup of relative redirect handling #11014
Browse files Browse the repository at this point in the history
+ Handle request relative redirects
+ Moved to Response
+ Changed default to allow relative
  • Loading branch information
gregw committed Dec 4, 2023
1 parent 9dea2e0 commit 6dbc7b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void testLocationWithPathReplacement() throws Exception

HttpTester.Response response = HttpTester.parseResponse(_connector.getResponse(request));
assertEquals(HttpStatus.FOUND_302, response.getStatus());
assertEquals("http://localhost/docs/top.html", response.get(HttpHeader.LOCATION));
assertEquals("/docs/top.html", response.get(HttpHeader.LOCATION));
}

@Test
Expand Down

0 comments on commit 6dbc7b4

Please sign in to comment.