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

formatCookieDomain return a wrong value when the domain has a region suffix like www.sina.com.cn #1004

Closed
somethinghero opened this issue May 17, 2018 · 2 comments

Comments

@somethinghero
Copy link

somethinghero commented May 17, 2018

in file cookie.go
the function formatCookieDomain return a wrong value when the domain has a region suffix like www.sina.com.cn
expect return is .sina.com.cn but return .com.cn

@somethinghero
Copy link
Author

somethinghero commented May 17, 2018

I can not find out a good way to solve this problem that consider all kind of domain yet
for example the input maybe:
www.sina.com.cn
www.sina.com
sina.com
sina.com.cn
xxx.sina.com
xxx.sina.com.cn
emmm...

Now I just config DisableSubdomainPersistence to true to ignore the problem

@kataras
Copy link
Owner

kataras commented May 17, 2018

/cc @chengyumeng

relative to: #964

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants