-
Notifications
You must be signed in to change notification settings - Fork 152
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
Host is empty #62
Comments
Yep, this is expected behavior: furl defaults to adopt that string as the path. This is the default behavior of >>> from urlparse import urlparse
>>> urlparse('new.rambler.ru')
ParseResult(scheme='', netloc='', path='new.rambler.ru', params='', query='', fragment='') To instruct furl to adopt >>> from furl import furl
>>> f = furl().set(host='new.rambler.ru')
>>> f.host
'new.rambler.ru' or provide a scheme so furl knows that >>> from furl import furl
>>> f = furl('http://new.rambler.ru')
>>> f.host
'new.rambler.ru' Does that answer your question? |
Yes, thanks! |
Closing this issue. Thank you for bringing this to my attention, Ivan. Don't hesitate to let me know |
I have a simple url: new.rambler.ru
I excepted that host is new.rambler.ru, scheme is None. But new.rambler.ru is in the path.
Is this a bug or expected behavior?
The text was updated successfully, but these errors were encountered: