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

浏览器复制的cookies和GetCookiesString获取的有所不同 #59

Merged
merged 3 commits into from
May 10, 2024

Conversation

CuteReimu
Copy link
Owner

  • 浏览器中复制的cookies的格式是"cookie1=xxx; cookie2=xxx",以"; "分隔
  • 我们原先的方法返回的格式是"cookie1=xxx; expires=xxx; domain=xxx.com; path=/\ncookie2=xxx; expires=xxx; domain=xxx.com; path=/",包含了一些其它信息,以"\n"分隔

应该区分开。

目前代码有bug,调用GetCookiesString得到的是第二种格式(但是用"; "分隔),再去调用SetCookiesString会出错。

同时更新了测试用例,优化了一下README.md中的相关文档。

@CuteReimu CuteReimu added bug Something isn't working 框架 有关架构设计的改动 labels May 10, 2024
@CuteReimu CuteReimu requested a review from RunsTp May 10, 2024 03:45
@CuteReimu CuteReimu enabled auto-merge (squash) May 10, 2024 03:45
@CuteReimu CuteReimu disabled auto-merge May 10, 2024 08:38
@CuteReimu CuteReimu merged commit 38ba0f6 into master May 10, 2024
2 checks passed
@CuteReimu CuteReimu deleted the cookie-optimize branch May 10, 2024 08:38
Copy link
Collaborator

@RunsTp RunsTp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我没意见

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 框架 有关架构设计的改动
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants