Skip to content

Commit

Permalink
fix: axios retry lose headers
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan32 committed Jun 14, 2024
1 parent 3a97b56 commit 911335e
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 911335e

Please sign in to comment.