Skip Menu |

This queue is for tickets about the MojoX-DirectoryListing CPAN distribution.

Report information
The Basics
Id: 88526
Status: resolved
Priority: 0/
Queue: MojoX-DirectoryListing

People
Owner: Nobody in particular
Requestors: mobrule [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.02



Subject: Wrong behavior serving binary file from a non-public directory
Date: Sun, 8 Sep 2013 18:24:43 -0700
To: bug-MojoX-DirectoryListing [...] rt.cpan.org
From: "Marty O'Brien" <mobrule [...] gmail.com>
If you use this module to serve a non-public directory, and request a binary file in that directory (like a gif or other image file), the module tries to render the file as text, so the output looks like garbage. The file serving subroutine must detect the file type and set the content type header appropriately.
On Sun Sep 08 21:24:54 2013, mobrule@gmail.com wrote: Show quoted text
> If you use this module to serve a non-public directory, and request a > binary file in that directory (like a gif or other image file), the module > tries to render the file as text, so the output looks like garbage. The > file serving subroutine must detect the file type and set the content type > header appropriately.
Fixed in 0.02 using MIME types to guess the file type.