Go to file
Rossen Stoyanchev 63e235f215 SPR-8750 Refine 'Content-Type' update in MockHttpServletRequest/Response.
The initial solution kept these three in full sync at all times:
contentType field, characterEncoding field, 'Content-Type' header.
That is correct behavior, however it breaks existing tests that rely
on contentType and characterEncoding being equal to exactly what 
they were set to.

For example, consider:
response.setContentType("text/plain");
response.setCharacterEncoding("UTF-8");

Ideally both contentType and the 'Content-Type' header would now be
"text/plain;charset=UTF-8". However, existing tests would expect 
that contentType is equal to "text/plain".

To avoid breaking existing tests, contentType and characterEncoding
will continue to be equal to exactly what they were set to while
the 'Content-Type' header will always include both the content 
type and the charset.

The only exception to this rule is when a 'Content-Type' header
is set explicitly, the contentType and characterEncoding fields will 
be updated accordingly, possibly overriding the existing values.
2011-11-17 15:07:15 +00:00
build-spring-framework SPR-8750 Update MockHttpServletRequest/Response handling of contentType. 2011-11-16 23:28:48 +00:00
org.springframework.aop Introduce @EnableAspectJAutoProxy 2011-10-11 18:51:41 +00:00
org.springframework.asm Merge 3.1.0 development branch into trunk 2010-10-25 19:48:20 +00:00
org.springframework.aspects Introduce @EnableCaching 2011-11-16 04:21:21 +00:00
org.springframework.beans Added cross linking in Javadoc for @Autowired, @Qualifier, and @Value. 2011-11-11 22:28:37 +00:00
org.springframework.context Add Apache license header where missing in src/main 2011-11-16 18:23:56 +00:00
org.springframework.context.support Remove stale duplicate copy of spring-cache XSD 2011-11-16 04:20:43 +00:00
org.springframework.core LocaleEditor and StringToLocaleConverter do not restrict variant part through validation (SPR-8637) 2011-10-20 11:53:02 +00:00
org.springframework.expression Add Apache license header where missing in src/main 2011-11-16 18:23:56 +00:00
org.springframework.instrument Include license.txt and notice.txt in module JARs 2011-02-09 06:56:40 +00:00
org.springframework.instrument.tomcat Include license.txt and notice.txt in module JARs 2011-02-09 06:56:40 +00:00
org.springframework.integration-tests Introduce @EnableCaching 2011-11-16 04:21:21 +00:00
org.springframework.jdbc Add Apache license header where missing in src/main 2011-11-16 18:23:56 +00:00
org.springframework.jms Corrected Javadoc: handleListenerException() and invokeErrorHandler() log at WARN level, not at ERROR level. 2011-10-10 22:13:45 +00:00
org.springframework.orm SPR-8750 Refine 'Content-Type' update in MockHttpServletRequest/Response. 2011-11-17 15:07:15 +00:00
org.springframework.oxm [SPR-8222] Upgraded to JUnit 4.9. 2011-08-30 13:16:12 +00:00
org.springframework.spring-library Merge 3.1.0 development branch into trunk 2010-10-25 19:48:20 +00:00
org.springframework.spring-parent Fix JUnit version in spring-parent pom 2011-11-16 18:23:58 +00:00
org.springframework.test SPR-8750 Refine 'Content-Type' update in MockHttpServletRequest/Response. 2011-11-17 15:07:15 +00:00
org.springframework.transaction Fix typo in ResourceHolder#isVoid Javadoc 2011-11-16 23:32:42 +00:00
org.springframework.web SPR-8750 Refine 'Content-Type' update in MockHttpServletRequest/Response. 2011-11-17 15:07:15 +00:00
org.springframework.web.portlet fixed StandardServlet/PortletEnvironment to check for JNDI (for Google App Engine compatibility) 2011-10-20 10:46:16 +00:00
org.springframework.web.servlet SPR-8750 Refine 'Content-Type' update in MockHttpServletRequest/Response. 2011-11-17 15:07:15 +00:00
org.springframework.web.struts [SPR-8222] Upgraded to JUnit 4.9. 2011-08-30 13:16:12 +00:00
spring-framework-reference Fix typo in classpath scanning reference doc 2011-11-16 23:32:38 +00:00
.gitignore Add ignorable log file to .gitignore 2011-06-05 21:01:37 +00:00
build.properties Reorganize and add comments to build.properties 2011-08-20 03:02:05 +00:00
build.versions [SPR-8222] Upgraded to JUnit 4.9. 2011-08-30 13:16:12 +00:00
ci-build.properties adding properties file to simplify ant use in Bamboo CI build 2008-12-17 15:47:14 +00:00
eclipse-code-formatter.xml h2 embedded db support; updated formatting conventions not to auto-format javadoc; added hsqldb and h2 to jdbc maven pom as optional deps 2009-05-09 22:27:05 +00:00
spring-framework.ipr consistently use Unix line separator 2011-10-11 01:14:20 +00:00
spring-framework.psf Renamed org.springframework.instrument.classloading module to org.springframework.instrument.tomcat 2009-09-25 12:51:58 +00:00