2AMKLNZI7UVD7X5EMX7EGMZ6D7QVG5AF7Q7HVSSADOFHVFS4LPTQC
$c->response->content_type('application/octet-stream');
# Detect MIME type. Borrowed from Catalyst::Plugin::Static::Simple.
my $type = "text/plain";
if ($path =~ /.*\.(\S{1,})$/xms) {
my $ext = $1;
my $mimeTypes = MIME::Types->new(only_complete => 1);
my $t = $mimeTypes->mimeTypeOf($ext);
$type = ref $t ? $t->type : $t if $t;
}
$c->response->content_type($type);