1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-18 21:22:56 +00:00

Merge pull request #1027 from Toad-Dev/issue-1026

Fix large file uploads producing oversized packets.
This commit is contained in:
Jonathan Coates 2022-02-28 11:06:59 +00:00 committed by GitHub
commit 045c4fc88c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,6 +160,7 @@ public class UploadFileMessage extends ComputerServerMessage
contents.position( currentOffset ).limit( currentOffset + canWrite );
slices.add( new FileSlice( fileId, currentOffset, contents.slice() ) );
currentOffset += canWrite;
remaining -= canWrite;
}
contents.position( 0 ).limit( capacity );