diff options
Diffstat (limited to '')
-rw-r--r-- | lib/Net/Riak/Link.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Net/Riak/Link.pm b/lib/Net/Riak/Link.pm index f8df0dd..c5ed863 100644 --- a/lib/Net/Riak/Link.pm +++ b/lib/Net/Riak/Link.pm @@ -30,6 +30,8 @@ has tag => ( sub to_link_header { my ($self, $client) = @_; + $client ||= $self->client; + my $link = ''; $link .= '</'; $link .= $client->prefix . '/'; |