ncw
(Nick Craig-Wood)
9
Great investigation @jwink3101
OK that is interesting.
This is reminscent of the trouble we had with heic image files - the backend reports one size but the files are actually another.
Yes you are correct the magic for .zip
files is "PK\x03\x04" whereas the magic for gzip files is "\x1f\x8b" as you said.
My first thought was maybe this is a content-encoding: gzip mixup, but it doesn't look like it is from that.
If you can make a nice repeatable test then you can put that into a github issue and we can ask @lostb1t
to take a look (they aren't on the forum).