Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-Stream CPAN distribution.

Report information
The Basics
Id: 13253
Status: resolved
Priority: 0/
Queue: CGI-Application-Plugin-Stream

People
Owner: Nobody in particular
Requestors: william [...] knowmad.com
Cc:
AdminCc:

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

Attachments
CGI-Application-Plugin-Stream-2.02.tar.gz



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
I added a binmode line after opening the filehandle. The new dist is on its way to CPAN. Thanks, William!

Message body not shown because it is not plain text.