Skip to content

degroff/0.3.5.maintenance file manager #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Jul 7, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Code review, cleanup
  • Loading branch information
robotdan committed Jul 7, 2025
commit 5cec9c0470d588041b75d3e0d68fdbfcc5b29e54
7 changes: 0 additions & 7 deletions src/main/java/io/fusionauth/http/io/MultipartStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -369,27 +369,20 @@ private boolean reload(int minimumToLoad) throws IOException {
end = 0;
}

// TBD : I don't think we use it.
current = 0;

// Load until we have enough
// 1024 - 0
while (end < minimumToLoad) {
// Example: 1024 bytes, minToLoad = 16
int read = input.read(buffer, start, buffer.length - start);
if (read == -1) {
return false;
}

// end = 1024
end += read;

// start = 1024
start += end;

// Keep track of all bytes read for this multipart stream. Fail if the length has been exceeded.
if (read > 0) {
// bytesRead = 1024
bytesRead += read;
}

Expand Down