r70@latte: adam | 2006-12-06 00:46:28 -0800
adam [Wed, 6 Dec 2006 08:41:49 +0000 (08:41 +0000)]
 Prepping 0.31 for release

Changelog
Makefile.PL
lib/Catalyst/Action/REST.pm
lib/Catalyst/Action/SerializeBase.pm

index 50b4f81..6ba8bc4 100644 (file)
--- 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.
index e1048f5..70297f9 100644 (file)
@@ -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,
index 0bd3fb7..9005eeb 100644 (file)
@@ -15,7 +15,7 @@ use Class::Inspector;
 use 5.8.1;
 
 our
-$VERSION = '0.30';
+$VERSION = '0.31';
 
 =head1 NAME
 
index e26152b..b3864d3 100644 (file)
@@ -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 {