Skip to content

Commit

Permalink
BBBikeDataDownloadCompatPlack: handle image/png
Browse files Browse the repository at this point in the history
  • Loading branch information
eserte committed Aug 6, 2015
1 parent 4247462 commit 93b1576
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BBBikeDataDownloadCompatPlack.pm
Expand Up @@ -83,7 +83,9 @@ sub get_app {
my @stat = stat $filename;
Plack::Util::set_io_path($fh, Cwd::realpath($filename));

my $content_type = $filename =~ m{\.gif$} ? 'image/gif' : 'text/plain';
my $content_type = ($filename =~ m{\.gif$} ? 'image/gif' :
$filename =~ m{\.png$} ? 'image/png' :
'text/plain');

return [
200,
Expand Down

0 comments on commit 93b1576

Please sign in to comment.