Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AfterScript 添加多个header好像被覆盖了 #773

Open
rstyro opened this issue Apr 15, 2024 · 0 comments
Open

AfterScript 添加多个header好像被覆盖了 #773

rstyro opened this issue Apr 15, 2024 · 0 comments

Comments

@rstyro
Copy link

rstyro commented Apr 15, 2024

如题,添加多个header被覆盖了

  • 代码如下:
var code=ke.response.data.code;
if(code==200){
    ke.global.setAllHeader("uid",ke.response.data.data.id);
    ke.global.setAllHeader("token",ke.response.data.data.loginToken);
}
  • 第一个header被覆盖了,只剩第二个参数
  • 不确定本身是这样设计的,还是我的用法有误
  • 希望后续版本能支持可以添加多个header的
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant