Skip Menu |

This queue is for tickets about the HTTP-Server-Simple-Static CPAN distribution.

Report information
The Basics
Id: 22826
Status: resolved
Priority: 0/
Queue: HTTP-Server-Simple-Static

People
Owner: sjq-perl [...] jadevine.org.uk
Requestors: corion [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.04
Fixed in: (no value)



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
Thanks for the patch, I have applied it and uploaded to CPAN version 0.05 of HTTP::Server::Simple::Static. Stephen