[dancer-users] setting mime type

Yanick Champoux yanick at babyl.dyndns.org
Mon Jul 1 18:18:12 BST 2013


On 13-06-30 02:51 AM, Mr. Puneet Kishor wrote:
> but I need to set the correct mime type for the video. How do I do that with Dancer?

if you use 'send_file', Dancer will try to guess a decent miem type 
based on the file's extension.

If not, you can manipulate the content type via 'response->content_type( 
'some/type' )'

Joy,
`/anick



More information about the dancer-users mailing list