Skip to content

Commit

Permalink
fix: axios retry losing headers (#3902)
Browse files Browse the repository at this point in the history
  • Loading branch information
likui628 committed Jun 7, 2024
1 parent cca7f59 commit 8d3981f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/utils/http/axios/axiosRetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ export class AxiosRetry {
return Promise.reject(error);
}
config.__retryCount += 1;
//请求返回后config的header不正确造成重试请求失败,删除返回headers采用默认headers
delete config.headers;
return this.delay(waitTime).then(() => axiosInstance(config));
}

Expand Down

0 comments on commit 8d3981f

Please sign in to comment.