about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lib/Net/HTTP/API/Meta/Method.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Net/HTTP/API/Meta/Method.pm b/lib/Net/HTTP/API/Meta/Method.pm
index 2b16f8a..69298d4 100644
--- a/lib/Net/HTTP/API/Meta/Method.pm
+++ b/lib/Net/HTTP/API/Meta/Method.pm
@@ -197,7 +197,8 @@ sub _build_path {
         if (my $value = delete $args->{$match}) {
             $path =~ s/(?:\$|:)$match/$value/;
         }
-        if ($max_iter > $i) {
+        # TODO write test!
+        if ($max_iter < $i) {
             $path =~ s/\/(?:(\$|\:).*)?$//;
         }
     }