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

脚本中 headers 不支持多个同名的头,比如 Set-Cookie #259

Closed
exculibar opened this issue Jul 15, 2024 · 3 comments
Closed

脚本中 headers 不支持多个同名的头,比如 Set-Cookie #259

exculibar opened this issue Jul 15, 2024 · 3 comments
Labels
done 已经完成

Comments

@exculibar
Copy link

您的功能请求是否与问题有关?请描述.
脚本中 headers 不支持多个同名的头,比如 Set-Cookie

描述您想要的解决方案
让headers支持 string 列表 类型

附加上下文

response.headers['Content-Type'] = 'text/html'
// response.headers['Set-Cookie'] = 'sid=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=www.demo.xyz'
// response.headers['Set-Cookie'] = 'uid=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=www.demo.xyz'
// response.headers['Set-Cookie'] = 'tid=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=.demo.xyz'
response.headers['Set-Cookie'] = []
response.headers['Set-Cookie'].push('sid=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=www.demo.xyz')
response.headers['Set-Cookie'].push('uid=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=www.demo.xyz')
response.headers['Set-Cookie'].push('tid=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=.demo.xyz')
@beck-8
Copy link

beck-8 commented Jul 18, 2024


你自己写个字符串不就行了。

@wanghongenpin
Copy link
Owner

什么系统

@exculibar
Copy link
Author

很赞!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done 已经完成
Projects
None yet
Development

No branches or pull requests

3 participants