Use StreamingHttpOutputMessage.Body.repeatable in OkHttp3ClientHttpRequest

See gh-31449
This commit is contained in:
Arjen Poutsma
2023-10-24 16:12:17 +02:00
parent 322013a30a
commit b6e0b8c343

View File

@@ -132,7 +132,7 @@ class OkHttp3ClientHttpRequest extends AbstractStreamingClientHttpRequest {
@Override
public boolean isOneShot() {
return true;
return !this.body.repeatable();
}
}