|
@@ -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()))
|