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 dc312da commit cd195ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ public void handle(String target, Request baseRequest, HttpServletRequest reques
"Connection: close\n" +
"\n");
assertThat(response, containsString(" 302 Found"));
assertThat(response, containsString("Location: http://myhost/foo"));
assertThat(response, containsString("Location: /foo"));
}

@Test
Expand Down

0 comments on commit cd195ff

Please sign in to comment.