Skip to content

Commit

Permalink
Merge pull request #163 from Buzzunu/master
Browse files Browse the repository at this point in the history
Fix compatibility version with Timeout
  • Loading branch information
viniciussanchez authored Aug 28, 2023
2 parents e486611 + 6b63953 commit 524bb78
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 524bb78

Please sign in to comment.