|
@@ -55,7 +55,7 @@ public class ServerWebExchangeItemParser implements RequestItemParser<ServerWebE |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public String getCookieValue(ServerWebExchange exchange, String cookieName) { |
|
|
public String getCookieValue(ServerWebExchange exchange, String cookieName) { |
|
|
return Optional.ofNullable(exchange.getResponse().getCookies().getFirst(cookieName)) |
|
|
|
|
|
|
|
|
return Optional.ofNullable(exchange.getRequest().getCookies().getFirst(cookieName)) |
|
|
.map(HttpCookie::getValue) |
|
|
.map(HttpCookie::getValue) |
|
|
.orElse(null); |
|
|
.orElse(null); |
|
|
} |
|
|
} |
|
|