Skip to content

Commit

Permalink
Fix compatibility version with Timeout
Browse files Browse the repository at this point in the history
Adicionado a condição {$IF COMPILERVERSION <= 33} para compatibilidade da função Timeout com versão do Delphi Rio ou anteriores.
  • Loading branch information
Buzzunu committed Aug 26, 2023
1 parent e486611 commit 6b63953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RESTRequest4D.Request.Client.pas
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ function TRequestClient.SynchronizedEvents(const AValue: Boolean): IRequest;

function TRequestClient.Timeout: Integer;
begin
{$IF COMPILERVERSION <= 32}
{$IF COMPILERVERSION <= 33}
Result := FRESTRequest.Timeout;
{$ELSE}
Result := FRESTRequest.ConnectTimeout;
Expand Down Expand Up @@ -551,7 +551,7 @@ function TRequestClient.ResourceSuffix(const AResourceSuffix: string): IRequest;
function TRequestClient.Timeout(const ATimeout: Integer): IRequest;
begin
Result := Self;
{$IF COMPILERVERSION <= 32}
{$IF COMPILERVERSION <= 33}
FRESTRequest.Timeout := ATimeout;
{$ELSE}
FRESTRequest.ConnectTimeout := ATimeout;
Expand Down

0 comments on commit 6b63953

Please sign in to comment.