r70@latte: adam | 2006-12-06 00:46:28 -0800
[catagits/Catalyst-Action-REST.git] / lib / Catalyst / Action / SerializeBase.pm
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 {