From 6685b87533d35500ecba3cb72be78bd2f366e9c4 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Fri, 4 Jun 2010 10:15:45 +0200 Subject: fix bug whit remaining params in url --- lib/MooseX/Net/API/Meta/Method.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/MooseX/Net/API') diff --git a/lib/MooseX/Net/API/Meta/Method.pm b/lib/MooseX/Net/API/Meta/Method.pm index 62b4869..521a802 100644 --- a/lib/MooseX/Net/API/Meta/Method.pm +++ b/lib/MooseX/Net/API/Meta/Method.pm @@ -170,9 +170,10 @@ sub _build_path { $path =~ s/(?:\$|:)$match/$value/; } if ($max_iter > $i) { - $path =~ s/(?:\$|:)(\w+)//; + $path =~ s/(?:\/)?(?:\$|:)(\w+)$//; } } + $path =~ s/(?:\/)?(?:\$|:)(\w+)$//; return $path; } -- cgit 1.4.1