浏览器复制的cookies和GetCookiesString
获取的有所不同
#59
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
"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
中的相关文档。