in reply to Correct Perl settings for sending zipfile to browser
The zip file printing code looks ok to me. You could do two 2 tests related to download if you haven't already ...
... after download, test if you can successfully extract contents.