Skip to content

Commit

Permalink
Changed back to the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-jy committed Sep 20, 2023
1 parent abc79e9 commit d82c852
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/connection/statement.js
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,12 @@ function sendSfRequest(statementContext, options, appendQueryParamOnRetry)
// retry, update the url
if ((numRetries > 0) && appendQueryParamOnRetry)
{
options.url = Util.url.appendParam(urlOrig, 'retry', true);
let retryUrl;
retryUrl = Util.url.appendParam(urlOrig, 'retryCount', numRetries);
if(connectionConfig.getIncludeRetryContext){
retryUrl = Util.url.appendParam(retryUrl, 'retryReason', lastStatusCodeForRetry);
}
options.url = retryUrl;
}

sf.request(options);
Expand Down

0 comments on commit d82c852

Please sign in to comment.