Skip to content

Commit

Permalink
fix http error-handling (see gh #104)
Browse files Browse the repository at this point in the history
  • Loading branch information
benibela committed Jun 27, 2023
1 parent f7a7ff6 commit 9905cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xidelbase.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2237,7 +2237,7 @@ function TProcessingContext.evaluateQuery(const query: IXQuery; const data: IDat
procedure TProcessingContext.httpReact(sender: TInternetAccess; var transfer: TTransfer; var reaction: TInternetAccessReaction);
begin
stupidHTTPReactionHackFlag := 0;
case TInternetAccess.reactFromCodeString(errorHandling, sender.lastHTTPResultCode, reaction) of
case TInternetAccess.reactFromCodeString(errorHandling, transfer.HTTPResultCode, reaction) of
'retry': Sleep(trunc(wait*1000));
'ignore': stupidHTTPReactionHackFlag := 1;
'skip': stupidHTTPReactionHackFlag := 2;
Expand Down

0 comments on commit 9905cb0

Please sign in to comment.