File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
spring-web/src/main/java/org/springframework/http/client/reactive Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -76,16 +76,14 @@ public HttpStatus getStatusCode() {
76
76
public MultiValueMap <String , ResponseCookie > getCookies () {
77
77
MultiValueMap <String , ResponseCookie > result = new LinkedMultiValueMap <>();
78
78
this .response .cookies ().values ().stream ().flatMap (Collection ::stream )
79
- .forEach (cookie -> {
80
- ResponseCookie responseCookie = ResponseCookie .from (cookie .name (), cookie .value ())
79
+ .forEach (cookie ->
80
+ result . add ( cookie . name (), ResponseCookie .from (cookie .name (), cookie .value ())
81
81
.domain (cookie .domain ())
82
82
.path (cookie .path ())
83
83
.maxAge (cookie .maxAge ())
84
84
.secure (cookie .isSecure ())
85
85
.httpOnly (cookie .isHttpOnly ())
86
- .build ();
87
- result .add (cookie .name (), responseCookie );
88
- });
86
+ .build ()));
89
87
return CollectionUtils .unmodifiableMultiValueMap (result );
90
88
}
91
89
You can’t perform that action at this time.
0 commit comments