Skip to content

Commit b467c47

Browse files
committed
ClientRequest.method->create
ClientRequest.method was deprecated in favor of the create method Closes gh-17054
1 parent 11105a5 commit b467c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/src/test/java/org/springframework/security/htmlunit/server/HtmlUnitWebTestClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private Mono<ClientResponse> redirectIfNecessary(ClientRequest request, Exchange
161161
redirectUrl = scheme + "://" + host + location.toASCIIString();
162162
}
163163
// @formatter:off
164-
ClientRequest redirect = ClientRequest.method(HttpMethod.GET, URI.create(redirectUrl))
164+
ClientRequest redirect = ClientRequest.create(HttpMethod.GET, URI.create(redirectUrl))
165165
.headers((headers) -> headers.addAll(request.headers()))
166166
.cookies((cookies) -> cookies.addAll(request.cookies()))
167167
.attributes((attributes) -> attributes.putAll(request.attributes()))

0 commit comments

Comments
 (0)