Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Static-Simple CPAN distribution.

Report information
The Basics
Id: 60053
Status: open
Priority: 0/
Queue: Catalyst-Plugin-Static-Simple

People
Owner: Nobody in particular
Requestors: perl [...] evancarroll.com
Cc:
AdminCc:

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



Subject: MIME type controls
I have two feature requests: * Can we get an override of the mime-type in server_static_file, or an override for the file's extention that isn't actually on the file. I'm serving out files generated from SHA1 names. * Can we get a fallback to File::Magic or something that reads the byte and isn't dependent on the extension? Maybe an option `file_magic_fallback: 1` or something so if there is no extention provided, it can detect from the file contents what to do? -- Evan Carroll System Lord of the Internets http://www.evancarroll.com
I have a patch for: Catalyst::Plugin::Static::Simple, this allows you to override the files extention, or provide the content_type in the call to serve_static. Tests and POD included. html: http://github.com/EvanCarroll/Catalyst-Plugin-Static-Simple/compare/2b8647c57e9e4dba71b6...793a70075985b6493868 raw: http://github.com/EvanCarroll/Catalyst-Plugin-Static-Simple/compare/2b8647c57e9e4dba71b6...793a70075985b6493868.patch -- Evan Carroll System Lord of the Internets http://www.evancarroll.com
Just uploaded to cpan as Catalyst::Plugin::Static::Simple::ButMaintained. -- Evan Carroll System Lord of the Internets http://www.evancarroll.com
Am Fr 10. Aug 2012, 13:18:08, ECARROLL schrieb: Show quoted text
> Just uploaded to cpan as Catalyst::Plugin::Static::Simple::ButMaintained.
That comment in the changelog is neither nice nor appropriate, please take it out! I wanted to migrate the repository from svn to git but it didn't happen so I didn't work on the module. You could have asked for co-maintainership which we gladly would have given to you. If you provide me with a patch against 0.30 which includes docs and tests for the feature I'll apply it and release a new version or you could get a commit bit for the repo yourself as well as co-maint on PAUSE, whatever you prefer.