Subject: | Serving binary files is broken on Win32 |
Serving of binary files is broken on Win32, as the input and output
filehandles are not set to binary properly, for two reasons:
There is no version required for IO::File, but the ->binmode() method
is available only since 1.22 (and I happen to have version 1.1 installed).
The output filehandle isn't set to binary mode at all.
The following three lines rectify that:
#$fh->binmode;
binmode $fh;
binmode $self->stdout_handle;
Thanks for writing this useful module!
-max