Explorar o código

* Fix http routing params

Michaël Van Canneyt hai 1 semana
pai
achega
57fd2963d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);