Skip to content

Commit d11a05d

Browse files
committed
Update DHttpClientRequest.java
1 parent 9c6e44a commit d11a05d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

http-client/src/main/java/io/avaje/http/client/DHttpClientRequest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,8 @@ public HttpClientRequest body(HttpRequest.BodyPublisher body) {
365365

366366
@Override
367367
public HttpClientRequest body(OutputStreamWriter writer) {
368-
this.body = new OutputStreamBodyPublisher(writer, context.httpClient().executor().orElse(null));
368+
this.body =
369+
new OutputStreamBodyPublisher(writer, context.httpClient().executor().orElseThrow());
369370
return this;
370371
}
371372

0 commit comments

Comments
 (0)