Closed tomgoren closed 6 years ago
@tomgoren you are correct that ScanLines
is the culprit -- since binary files can be directly uploaded when provided as an argument, it was originally assumed that any piped input would be plaintext.
There's no good reason not to read input as bytes in this circumstance though(i.e. if --stream
mode is not enabled), so this change has been made and is available in the latest release
Awesome - thanks @bcicen !!! ❤️
Confirmed - it is fixed!
This works supposedly, but after downloading I get a corrupted file.
It even recognizes the file type.
I suspect that this is due to us using
bufio.ScanLines
but I don't know diddly about Golang.Thanks!