summary refs log tree commit diff
path: root/lib/MooseX/Net/API/Role
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-06-22 18:10:39 +0200
committerfranck cuny <franck@lumberjaph.net>2010-06-22 18:10:39 +0200
commit52456d825d696b932a3edebe0da257380616046b (patch)
treeeb442466c5fec3f4a83950869a2d67c36e015953 /lib/MooseX/Net/API/Role
parentfix format (diff)
downloadmoosex-net-api-52456d825d696b932a3edebe0da257380616046b.tar.gz
params can be strict or no strict
Diffstat (limited to '')
-rw-r--r--lib/MooseX/Net/API/Role/Serialization.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MooseX/Net/API/Role/Serialization.pm b/lib/MooseX/Net/API/Role/Serialization.pm
index fe86b9f..f10a101 100644
--- a/lib/MooseX/Net/API/Role/Serialization.pm
+++ b/lib/MooseX/Net/API/Role/Serialization.pm
@@ -23,6 +23,8 @@ has serializers => (
 sub get_content {
     my ($self, $result) = @_;
 
+    return undef unless $result->content;
+
     my $content_type = $self->api_format // $result->header('Content-Type');
     $content_type =~ s/(;.+)$//;