diff options
author | franck cuny <franck@lumberjaph.net> | 2010-06-22 18:10:39 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-06-22 18:10:39 +0200 |
commit | 52456d825d696b932a3edebe0da257380616046b (patch) | |
tree | eb442466c5fec3f4a83950869a2d67c36e015953 /lib/MooseX/Net/API/Role | |
parent | fix format (diff) | |
download | moosex-net-api-52456d825d696b932a3edebe0da257380616046b.tar.gz |
params can be strict or no strict
Diffstat (limited to '')
-rw-r--r-- | lib/MooseX/Net/API/Role/Serialization.pm | 2 |
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/(;.+)$//; |