flux
flux copied to clipboard
Feature - add chain size header to streamchain
What this pull does
- Updates dependencies to use the more commonly used
tar
package. It handles changing files better. - Adds an
Approx-Content-Length
header. The reason this is approx is that if you do the stream usingunsafe
mode, the file sizes change during transfer. Also, as we are tarring the files on the fly, we have to account for the tar header (512 bytes for each file, with each file padded to 512 bytes, plus a 1024 byte suffix) The image uses this to display how long to download the files, as it is also untarring them on the fly. - Adds a new test for the header, and tidies up some of the other tests.
All tests passing.