Skip to content

gh-135528: Support more second-level domain names in http.cookiejar #135820

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

LamentXU123
Copy link
Contributor

@LamentXU123 LamentXU123 commented Jun 22, 2025

Sorry to reopen it. I want to support customization in this. But since the FR has not discussed before, its not proper to directly create PR on this. I should treat this seperately. Just forget about the previous FR.

This PR only concerns of adding new common slds in the lib based on wiki figure, as its been a very long time from 2006 when the list is wrote.

So sorry for reopening this.

@hugovk hugovk changed the title gh-135528: Support more Second-Level Domain Names in lib http.cookiejar gh-135528: Support more second-level domain names in http.cookiejar Jun 24, 2025
"gov", "mil", "int", "aero", "biz", "cat", "coop",
"info", "jobs", "mobi", "museum", "name", "pro",
"travel", "eu") and len(tld) == 2:
known_slds = (
Copy link

Choose a reason for hiding this comment

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

should we also add tests for the newly added sld's?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No need IMO, the original test script only test .co.uk for this.

Copy link
Contributor Author

@LamentXU123 LamentXU123 Jun 25, 2025

Choose a reason for hiding this comment

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

sry to miss that, it actually test [".co.uk", ".org.za", ".tx.us", ".name.us"] but it's just four of them, I think it's still no need to add tests.

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

Successfully merging this pull request may close these issues.

2 participants