소스 검색

* Set result correctly in TCORSSupport.HandleRequest

Michaël Van Canneyt 2 년 전
부모
커밋
209fe88866
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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;