mirror of
https://github.com/apache/struts.git
synced 2026-08-07 07:37:20 +00:00
WW-3824 changes encoding definition to uppercase for Ajax requests to match specification
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1344143 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -84,7 +84,7 @@ public class DispatcherTest extends StrutsTestCase {
|
||||
// given
|
||||
MockHttpServletRequest req = new MockHttpServletRequest();
|
||||
req.addHeader("X-Requested-With", "XMLHttpRequest");
|
||||
req.setCharacterEncoding("utf-8");
|
||||
req.setCharacterEncoding("UTF-8");
|
||||
HttpServletResponse res = new MockHttpServletResponse();
|
||||
|
||||
Dispatcher du = initDispatcher(new HashMap<String, String>() {{
|
||||
@@ -95,7 +95,7 @@ public class DispatcherTest extends StrutsTestCase {
|
||||
du.prepare(req, res);
|
||||
|
||||
// then
|
||||
assertEquals(req.getCharacterEncoding(), "utf-8");
|
||||
assertEquals(req.getCharacterEncoding(), "UTF-8");
|
||||
}
|
||||
|
||||
public void testSetEncodingIfDiffer() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user