about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/MooseX/Net/API.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MooseX/Net/API.pm b/lib/MooseX/Net/API.pm
index 634416f..1587810 100644
--- a/lib/MooseX/Net/API.pm
+++ b/lib/MooseX/Net/API.pm
@@ -207,7 +207,7 @@ sub net_api_method {
             my $path = $options{path};
 
             # replace all args in the url
-            while ( $path =~ /\$(\w+)/ ) {
+            while ( $path =~ /\$(\w+)/g ) {
                 my $match = $1;
                 if ( my $value = delete $args{$match} ) {
                     $path =~ s/\$$match/$value/;