-
Notifications
You must be signed in to change notification settings - Fork 71
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
[fix] Fix domain detection #281
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain this change with a few examples of why the current way is not working and the new way is better, please?
I have no clue what the library is doing, but it should cut off the first part of a domain ( It is used in a header (nginx), and if that header is not set correctly, things like chart loading fail. |
Any chance of getting this merged? |
Testing with In [9]: print(tldextract.extract('openwisp.org').registered_domain)
openwisp.org
In [10]: print(tldextract.extract('api.openwisp.org').registered_domain)
openwisp.org
In [11]: print(tldextract.extract('test.api.openwisp.org').registered_domain)
openwisp.org
In [12]: print(tldextract.extract('test.abc.de').registered_domain)
abc.de
In [13]: print(tldextract.extract('abc.de').registered_domain)
abc.de
In [14]: print(tldextract.extract('test.test.abc.de').registered_domain)
abc.de I cannot replicate the issue you are mentioning here. I will try to update this library and modify the different parts of the code to make sure they're consistent. |
try extracting from api.open-wisp.de
|
What's the issue? Please update your local copy of the library. |
Should fix #273, not tested