projects
/
catagits/Catalyst-Devel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Use iomode => :raw to stop PNG files getting corrupted
[catagits/Catalyst-Devel.git]
/
lib
/
Catalyst
/
Helper.pm
diff --git
a/lib/Catalyst/Helper.pm
b/lib/Catalyst/Helper.pm
index
7efa9ba
..
4d1b861
100644
(file)
--- a/
lib/Catalyst/Helper.pm
+++ b/
lib/Catalyst/Helper.pm
@@
-49,7
+49,7
@@
sub get_sharedir_file {
}
my $file = file( $dist_dir, @filename);
Carp::confess("Cannot find $file") unless -r $file;
- my $contents = $file->slurp;
+ my $contents = $file->slurp(iomode => "<:raw");
return $contents;
}