When updating the session cookie header, actually update it rather than adding a new header without a name.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@964614
13f79535-47bb-0310-9956-
ffa450edef68
for (int i = 0; i < n; i++) {
if (headers.getName(i).toString().equals(headername)) {
if (headers.getValue(i).toString().startsWith(startsWith)) {
- headers.setValue(sb.toString());
+ headers.getValue(i).setString(sb.toString());
set = true;
}
}
Avoid NullPointerException, when copyXML=true and META-INF/context.xml
does not exist. (kfujino)
</fix>
+ <fix>
+ <bug>49598</bug>: When session is changed and the session cookie is
+ replaced, ensure that the new Set-Cookie header overwrites the old
+ Set-Cookie header. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">