Polish DefaultHttpFirewallTests

Issue gh-4169
This commit is contained in:
Rob Winch 2016-12-21 09:29:23 -06:00
parent 6bec625e68
commit d39f3385b6
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ public class DefaultHttpFirewallTests {
public void getFirewalledRequestWhenUppercaseEncodedPathThenException() {
DefaultHttpFirewall fw = new DefaultHttpFirewall();
MockHttpServletRequest request = new MockHttpServletRequest();
request.setRequestURI("/context-root/a/b;%2f1/c");
request.setRequestURI("/context-root/a/b;%2F1/c");
request.setContextPath("/context-root");
request.setServletPath("");
request.setPathInfo("/a/b;/1/c"); // URL decoded requestURI
@ -97,7 +97,7 @@ public class DefaultHttpFirewallTests {
DefaultHttpFirewall fw = new DefaultHttpFirewall();
fw.setAllowUrlEncodedSlash(true);
MockHttpServletRequest request = new MockHttpServletRequest();
request.setRequestURI("/context-root/a/b;%2f1/c");
request.setRequestURI("/context-root/a/b;%2F1/c");
request.setContextPath("/context-root");
request.setServletPath("");
request.setPathInfo("/a/b;/1/c"); // URL decoded requestURI