logoalt Hacker News

guipsp • yesterday at 8:46 PM • 2 replies • view on HN

Well, you still have to find the zip header no?


Replies

tredre3 • yesterday at 9:26 PM

HTTP supports negative ranges, so you can request the final 64KB and scan it. If you don't find the Central Directory (unlikely unless the zip contains 10k files and/or lots of comments) then you just request another 64KB.

➕ show 2 replies