From: adam Date: Wed, 6 Dec 2006 08:41:49 +0000 (+0000) Subject: r70@latte: adam | 2006-12-06 00:46:28 -0800 X-Git-Tag: 1.08~278 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2224bad1aeb7ddf00a41f3c00c55583830230182;p=catagits%2FCatalyst-Action-Serialize-Data-Serializer.git r70@latte: adam | 2006-12-06 00:46:28 -0800 Prepping 0.31 for release --- diff --git a/Changelog b/Changelog index 50b4f81..6ba8bc4 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,7 @@ +Wed Dec 6 00:45:02 PST 2006 (adam) - Release 0.31 + Fixed a bug where we would report a blank content-type negotiation. + Added Data::Dump as a dependency. + Tue Dec 5 13:02:08 PST 2006 (adam) Made the YAML::HTML view automatically append content-type=text/html on the resulting URLs. diff --git a/Makefile.PL b/Makefile.PL index e1048f5..70297f9 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -13,6 +13,7 @@ requires('LWP::UserAgent' => '2.033'); requires('Data::Serializer' => '0.36'); requires('Class::Inspector' => '1.13'); requires('URI::Find' => undef); +requires('Data::Dump' => undef); feature 'Data::Denter (text/x-data-denter) support', -default => 0, diff --git a/lib/Catalyst/Action/REST.pm b/lib/Catalyst/Action/REST.pm index 0bd3fb7..9005eeb 100644 --- a/lib/Catalyst/Action/REST.pm +++ b/lib/Catalyst/Action/REST.pm @@ -15,7 +15,7 @@ use Class::Inspector; use 5.8.1; our -$VERSION = '0.30'; +$VERSION = '0.31'; =head1 NAME 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 {