Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ks-no/fiks-streaming-klient
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 873c5de3613dfac442664dcd196d419be6fd01cd
Choose a base ref
..
head repository: ks-no/fiks-streaming-klient
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5480e428e4722633e3db4621063ae8a63d1b7da6
Choose a head ref
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/main/java/no/ks/fiks/streaming/klient/StreamingKlient.java
Original file line number Diff line number Diff line change
@@ -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);
}