Upgrade to Tomcat 11.0
This commit upgrades the baseline to Tomcat 11.0 and adapts to the following behavior changes in Tomcat: * the MimeHeaders#clear method has been removed * expired cookies do not set "Max-Age=0" anymore * responses to HEAD requests do not write the "Content-Length" header anymore. Closes gh-33916
This commit is contained in:
@@ -141,7 +141,7 @@ class WebSessionIntegrationTests extends AbstractHttpHandlerIntegrationTests {
|
||||
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
String value = response.getHeaders().getFirst("Set-Cookie");
|
||||
assertThat(value).isNotNull();
|
||||
assertThat(value).as("Actual value: " + value).contains("Max-Age=0");
|
||||
assertThat(value).as("Actual value: " + value).containsAnyOf("Expires=Thu, 01 Jan 1970", "Max-Age=0");
|
||||
}
|
||||
|
||||
@ParameterizedHttpServerTest
|
||||
@@ -189,7 +189,7 @@ class WebSessionIntegrationTests extends AbstractHttpHandlerIntegrationTests {
|
||||
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
String value = response.getHeaders().getFirst("Set-Cookie");
|
||||
assertThat(value).isNotNull();
|
||||
assertThat(value).as("Actual value: " + value).contains("Max-Age=0");
|
||||
assertThat(value).as("Actual value: " + value).containsAnyOf("Expires=Thu, 01 Jan 1970", "Max-Age=0");
|
||||
}
|
||||
|
||||
private String extractSessionId(HttpHeaders headers) {
|
||||
|
||||
Reference in New Issue
Block a user