avoid padding content in serveGet

Always truncate instead. The padding risked something not noticing the
content was bad and getting a file that was corrupted in a novel way
with the padding "X" at the end. A truncated file is better.
This commit is contained in:
Joey Hess 2024-07-22 11:19:52 -04:00
parent 4826a3745d
commit 72d0769ca5
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 39 additions and 24 deletions

View file

@ -28,6 +28,10 @@ Planned schedule of work:
## work notes
* servePut and clientPut pad the data to indicate when it's not valid.
That should not be necessary, they should always be able to truncate the
data.
* Implement: servePutOffset, serveLockContent
* A Locker should expire the lock on its own after 10 minutes initially.