Browse Source

* Set result correctly in TCORSSupport.HandleRequest

Michaël Van Canneyt 2 years ago
parent
commit
0e77ef6ebf
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/fcl-web/src/base/httpdefs.pp

+ 3 - 0
packages/fcl-web/src/base/httpdefs.pp

@@ -1018,7 +1018,10 @@ begin
       if MaxAge>0 then
         SetCustomHeader('Access-Control-Max-Age',IntToStr(MaxAge));
       if (hcSend in aOptions) then
+        begin
         SetStatus(200,True);
+        Result:=True;
+        end;
       end;
     end;
 end;