Permalink
Browse files

#376 - SimpleContentFilter throws warning when no content-type is pre…

…sent.
  • Loading branch information...
1 parent 93028b4 commit 079404f2e9c3e8b16d828324e1191c2283a63d8a Eduardo Arino de la Rubia 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 079404f

Please sign in to comment.