spring-framework/spring-test
Sam Brannen 8189c90741 Allow Set-Cookie header to be overwritten in MockHttpServletResponse
Prior to this commit, there was no way to replace the Set-Cookie header
via MockHttpServletResponse. Specifically, an invocation of setHeader()
for the Set-Cookie header resulted in an additional Set-Cookie header
instead of replacing the existing one, which is in violation of the
contract for javax.servlet.http.HttpServletResponse.setHeader(...).

This commit refactors the internals of MockHttpServletResponse to ensure
that an existing Set-Cookie header is overwritten when set via an
invocation of setHeader(). This commit also verifies the expected
behavior for addHeader() and addCookie() with regard to multiple cookies.

Closes gh-23512
2019-08-27 17:20:38 +02:00
..
src Allow Set-Cookie header to be overwritten in MockHttpServletResponse 2019-08-27 17:20:38 +02:00
.springBeans
spring-test.gradle Upgrade to OpenPDF 1.2.21, Rome 1.12.1, XStream 1.4.11.1 2019-07-20 18:20:03 +02:00