We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89d171d + c17bb82 commit d1d5b6dCopy full SHA for d1d5b6d
src/main/java/com/hyperwallet/clientsdk/util/Request.java
@@ -267,7 +267,11 @@ private BinaryResponse readBinaryResponse() throws IOException {
267
} catch (IOException e) {
268
response.setBinaryBody(getBinaryFromStream(connection.getErrorStream()));
269
}
270
- return response;
+ finally {
271
+ connection.getInputStream().close();
272
+ return response;
273
+ }
274
+
275
276
277
private byte[] getBinaryFromStream(final InputStream is) {
0 commit comments