Permalink
Browse files

Merge pull request #377 from earino/master

See issue 376
  • Loading branch information...
2 parents 93028b4 + 079404f commit b6b0a94c4b84682d2c300aef8eff13d3ba1b732b @miyagawa miyagawa committed Feb 19, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Plack/Middleware/SimpleContentFilter.pm
@@ -13,6 +13,7 @@ sub call {
$self->response_cb($res, sub {
my $res = shift;
my $h = Plack::Util::headers($res->[1]);
+ return unless $h->get('Content-Type');
if ($h->get('Content-Type') =~ m!^text/!) {
return sub {
my $chunk = shift;

0 comments on commit b6b0a94

Please sign in to comment.