Browse Source

* Fix http routing params

Michaël Van Canneyt 1 week ago
parent
commit
57fd2963d3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-web/src/base/httproute.pp

+ 1 - 1
packages/fcl-web/src/base/httproute.pp

@@ -744,13 +744,13 @@ begin
   try
     While (Result=Nil) and (I<FRoutes.Count) do
       begin
+      Params.Clear;
       Result:=FRoutes[i];
       If Not Result.MatchPattern(APathInfo,Params,FRouteOptions) then
         Result:=Nil
       else if Not Result.MatchMethod(AMethod) then
         begin
         Result:=Nil;
-        Params.Clear;
         MethodMisMatch:=True;
         end;
       Inc(I);