Skip to content

Commit

Permalink
Move code to HttpClientHttpConduit
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoodyear committed Sep 17, 2024
1 parent 5a530af commit 15c3158
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.http.HttpClient;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
Expand Down Expand Up @@ -715,11 +714,6 @@ public void close(Message msg) throws IOException {
}
}
} finally {
OutputStream os = msg.getContent(OutputStream.class);
// Java 21 may hang on close, we flush stream to help close them out.
if (os != null && AutoCloseable.class.isAssignableFrom(HttpClient.class)) {
os.flush();
}
super.close(msg);
}
}
Expand Down
Loading

0 comments on commit 15c3158

Please sign in to comment.