X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAction%2FSerializeBase.pm;h=b3864d351ca0e45440072c19de2360c01071988d;hb=2224bad1aeb7ddf00a41f3c00c55583830230182;hp=e26152b28b0fdc52f2e346c901336e0c2d1ab2fc;hpb=f7218d5408295992e9cea666c7a99dcded52dcdf;p=catagits%2FCatalyst-Action-REST.git diff --git a/lib/Catalyst/Action/SerializeBase.pm b/lib/Catalyst/Action/SerializeBase.pm index e26152b..b3864d3 100644 --- a/lib/Catalyst/Action/SerializeBase.pm +++ b/lib/Catalyst/Action/SerializeBase.pm @@ -139,7 +139,7 @@ sub _unsupported_media_type { my ( $self, $c, $content_type ) = @_; $c->res->content_type('text/plain'); $c->res->status(415); - if (defined($content_type)) { + if (defined($content_type) && $content_type ne "") { $c->res->body( "Content-Type " . $content_type . " is not supported.\r\n" ); } else {