- Notifications
You must be signed in to change notification settings - Fork38.6k
Closed
Milestone
Description
A cookie has the optional attributesExpires
andMax-Age
. If both are set, the latter takes precedence.
In methodadaptCookies()
of classorg.springframework.http.client.reactive.HttpComponentsClientHttpResponse
each HttpComponentsCookie
is converted to a SpringResponseCookie
.
Given is an HttpComponentsCookie
which has setExpires
only, sinceadaptCookies()
just readsMax-Age
fromCookie
, the resultingResponseCookie
has lost its expiration information.
Note: I have also checkedReactorClientHttpResponse
, and it is not affected. Netty internally convertsExpires
toMax-Age
. Thus, itsCookie
class supportsMax-Age
only.