Skip to content

Commit

Permalink
Revert endring på sendDownloadRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
zapodot committed Mar 16, 2021
1 parent f8bd433 commit 829c6ba
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -76,9 +76,7 @@ public KlientResponse<InputStream> sendDownloadRequest(MultiPartContentProvider
String content = IOUtils.toString(listener.getInputStream(), StandardCharsets.UTF_8);
throw new KlientHttpException(String.format("HTTP-feil (%d): %s", status, content), status, content);
}
try(final InputStream input = listener.getInputStream()) {
return buildResponse(response, input);
}
return buildResponse(response, listener.getInputStream());
} catch (IOException e) {
throw new RuntimeException("Feil under lesing av datastrøm", e);
}
Expand Down

0 comments on commit 829c6ba

Please sign in to comment.