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

解决如果CookieHandler存在,cookie会重复的bug #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ppsoft1991
Copy link

sun.net.www.protocol.http.HttpURLConnection底层会对CookieHandler作响应:
1.如果设置CookieHandler会导致requests对httpOnly的cookie获取失败(sun.net.www.protocol.http.HttpURLConnection#filterHeaderField)
2.如果设置CookieHandler会导致系统和CookieHandler分别对cookie进行一次处理导致cookie重复

bug触发方式:

WebView view = new WebView();
WebEngine engine = view.getEngine(); //webengine init时会调用CookieHandler.setDefault导致bug

当系统调用CookieHandler之后使用CookieHandler来处理cookie可避免此bug

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

Successfully merging this pull request may close these issues.

None yet

1 participant