psanford / wormhole-william

End-to-end encrypted file transfer. A magic wormhole CLI and API in Go (golang).
MIT License
1.07k stars 54 forks source link

Handle empty file transfers #79

Closed psanford closed 2 years ago

psanford commented 2 years ago

Previously we would hang on receiving an empty file because we expected to get at least one record. The python implementation short circuits the read if the offer says the length is 0, so we now do that also.

Fixes #78