Skip to content

Commit

Permalink
Merge branch '3.4.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Feb 26, 2025
2 parents 3d81a8d + 4d137d4 commit 2dac97a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ static PemContent load(String content, ResourceLoader resourceLoader) throws IOE
if (isPresentInText(content)) {
return new PemContent(content);
}
try {
return load(resourceLoader.getResource(content).getInputStream());
try (InputStream in = resourceLoader.getResource(content).getInputStream()) {
return load(in);
}
catch (IOException | UncheckedIOException ex) {
throw new IOException("Error reading certificate or key from file '%s'".formatted(content), ex);
Expand Down

0 comments on commit 2dac97a

Please sign in to comment.