mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-06 18:52:13 +00:00
ClientRequest.method->create
ClientRequest.method was deprecated in favor of the create method Closes gh-17054
This commit is contained in:
parent
11105a5c51
commit
b467c47ed5
@ -161,7 +161,7 @@ final class HtmlUnitWebTestClient {
|
|||||||
redirectUrl = scheme + "://" + host + location.toASCIIString();
|
redirectUrl = scheme + "://" + host + location.toASCIIString();
|
||||||
}
|
}
|
||||||
// @formatter:off
|
// @formatter:off
|
||||||
ClientRequest redirect = ClientRequest.method(HttpMethod.GET, URI.create(redirectUrl))
|
ClientRequest redirect = ClientRequest.create(HttpMethod.GET, URI.create(redirectUrl))
|
||||||
.headers((headers) -> headers.addAll(request.headers()))
|
.headers((headers) -> headers.addAll(request.headers()))
|
||||||
.cookies((cookies) -> cookies.addAll(request.cookies()))
|
.cookies((cookies) -> cookies.addAll(request.cookies()))
|
||||||
.attributes((attributes) -> attributes.putAll(request.attributes()))
|
.attributes((attributes) -> attributes.putAll(request.attributes()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user