wendux / fly

:rocket: Supporting request forwarding and Promise based HTTP client for all JavaScript runtimes.
https://wendux.github.io/dist/#/language
MIT License
3.9k stars 639 forks source link

拦截器中执行异步任务token失效时请求的是上一次保存的token 导致死循环 #250

Open chen-can opened 4 years ago

chen-can commented 4 years ago

比如我本地有token为1 token失效重新请求获取token为2 再次请求token还是1 request.params或request.body 请求拦截器中保存的全局变量无效 实测带参数会复现

weixisheng commented 4 years ago

需要更新response.request的请求头