Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

See issue 376 #377

Merged
merged 1 commit into from

2 participants

@earino

Code which makes it so that Plack::MiddleWare::SimpleContentFilter does not throw a warning when there is no Content-Type header.

@miyagawa miyagawa merged commit b6b0a94 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 19, 2013
  1. #376 - SimpleContentFilter throws warning when no content-type is pre…

    Eduardo Arino de la Rubia authored
    …sent.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/Plack/Middleware/SimpleContentFilter.pm
View
1  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;
Something went wrong with that request. Please try again.