Skip to content

Commit

Permalink
Reinstate abortOnCancel in JettyClientHttpRequest
Browse files Browse the repository at this point in the history
This commit reinstates abortOnCancel in the ReactiveRequest builder,
which allows a cancel signal to abort the request.

See gh-26287 and gh-27112
  • Loading branch information
poutsma committed Jul 9, 2021
1 parent 9cbb5af commit 297880d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -58,7 +58,7 @@ class JettyClientHttpRequest extends AbstractClientHttpRequest {
public JettyClientHttpRequest(Request jettyRequest, DataBufferFactory bufferFactory) {
this.jettyRequest = jettyRequest;
this.bufferFactory = bufferFactory;
this.builder = ReactiveRequest.newBuilder(this.jettyRequest);
this.builder = ReactiveRequest.newBuilder(this.jettyRequest).abortOnCancel(true);
}


Expand Down

0 comments on commit 297880d

Please sign in to comment.