From cf91104b69a7838152865684736e56831f484248 Mon Sep 17 00:00:00 2001 From: Ray Krueger Date: Thu, 14 Sep 2006 20:47:17 +0000 Subject: [PATCH] Made parameters case-insensitive --- .../acegisecurity/ui/savedrequest/SavedRequestTests.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/src/test/java/org/acegisecurity/ui/savedrequest/SavedRequestTests.java b/core/src/test/java/org/acegisecurity/ui/savedrequest/SavedRequestTests.java index b88b64a35f..3db40bb9f6 100644 --- a/core/src/test/java/org/acegisecurity/ui/savedrequest/SavedRequestTests.java +++ b/core/src/test/java/org/acegisecurity/ui/savedrequest/SavedRequestTests.java @@ -6,11 +6,17 @@ import org.springframework.mock.web.MockHttpServletRequest; public class SavedRequestTests extends TestCase { - public void testCaseInsensitve() throws Exception { + public void testCaseInsensitveHeaders() throws Exception { MockHttpServletRequest request = new MockHttpServletRequest(); request.addHeader("USER-aGenT", "Mozilla"); SavedRequest saved = new SavedRequest(request, new MockPortResolver(8080, 8443)); assertEquals("Mozilla", saved.getHeaderValues("user-agent").next()); } + public void testCaseInsensitveParameters() throws Exception { + MockHttpServletRequest request = new MockHttpServletRequest(); + request.addParameter("ThisIsATest", "Hi mom"); + SavedRequest saved = new SavedRequest(request, new MockPortResolver(8080, 8443)); + assertEquals("Hi mom", saved.getParameterValues("thisisatest")[0]); + } }