Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
juerg committed Mar 13, 2024
1 parent 9db4c6c commit af550ab
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2903,12 +2903,10 @@ else if (user != Nil || password != Nil) {
}
}

final long contentLength = conn.getContentLengthLong();

try (BufferedInputStream is = new BufferedInputStream(conn.getInputStream())) {
debugFn.applyOf(new VncString("Redirected url: " + conn.getURL()));

final byte[] data = slurpData(is, progressFn, contentLength);
final byte[] data = slurpData(is, progressFn, conn.getContentLengthLong());

return VncBoolean.isTrue(binary)
? new VncByteBuffer(ByteBuffer.wrap(data))
Expand Down

0 comments on commit af550ab

Please sign in to comment.