Subject: | Incompatibility in Win* OS |
Hi Jason,
I discovered an issue with this module when used under Windows to stream binary files. If a filename is passed to the stream_file() function, it opens the file. However, it does not open it in binary mode (binmode). This was causing many errors with PDFs that were being served via my application. Adding binmode($fh) after the open command cleared everything up.
This function should be safe to use for all OSs according to the Perl docs. I have run all the tests after adding the binmode line and they pass (under Linux). Let me know if you need anything else.
Thanks,
William