summaryrefslogtreecommitdiff
path: root/lib/Net/Riak/Role/REST.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-06-16 13:32:54 +0200
committerfranck cuny <franck@lumberjaph.net>2010-06-16 13:32:54 +0200
commit8093f1bc8a54c4f205460d4fbc1706f45bb6a195 (patch)
tree89837da677b706006742ed2559d9870ed8faf42a /lib/Net/Riak/Role/REST.pm
parentadd three map/reduce operations (from the fast track) (diff)
downloadnet-riak-8093f1bc8a54c4f205460d4fbc1706f45bb6a195.tar.gz
accept multiples hosts so we don't always hit the same node
Diffstat (limited to 'lib/Net/Riak/Role/REST.pm')
-rw-r--r--lib/Net/Riak/Role/REST.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Net/Riak/Role/REST.pm b/lib/Net/Riak/Role/REST.pm
index 591bd6c..1a18ff7 100644
--- a/lib/Net/Riak/Role/REST.pm
+++ b/lib/Net/Riak/Role/REST.pm
@@ -14,7 +14,7 @@ sub _build_path {
sub _build_uri {
my ($self, $path, $params) = @_;
- my $uri = URI->new($self->host);
+ my $uri = URI->new($self->get_host);
$uri->path($self->_build_path($path));
$uri->query_form(%$params);
$uri;