-
Notifications
You must be signed in to change notification settings - Fork 32
geturl() of the ParseResultBytes can't get correct url #57
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
Comments
I'm unable to reproduce your issue, can you show your whole workflow as to how you arrived at >>> import rfc3986
>>> rfc3986.__version__
'1.3.2'
>>> parsed = rfc3986.urlparse("https://xn--i-7iq.ws").encode("utf-8")
>>> parsed
ParseResultBytes(scheme=b'https', userinfo=None, host=b'xn--i-7iq.ws', port=None, path=None, query=None, fragment=None)
>>> parsed.geturl()
b'https://xn--i-7iq.ws' |
That's my workflow >>> import rfc3986
>>> rfc3986.__version__
'1.3.2'
>>> parsed = rfc3986.urlparse("https://i❤.ws")
>>> parsed
ParseResult(scheme='https', userinfo=None, host='i❤.ws', port=None, path=None, query=None, fragment=None)
>>> encoded = parsed.encode('idna')
>>> encoded
ParseResultBytes(scheme=b'https', userinfo=None, host=b'xn--i-7iq.ws', port=None, path=None, query=None, fragment=None)
>>> encoded.geturl()
b'https:' |
I can reproduce this. Thanks for reporting it.
|
|
sigmavirus24
added a commit
that referenced
this issue
Apr 8, 2020
sigmavirus24
added a commit
that referenced
this issue
Apr 8, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I run geturl() of the instance of the ParseResultBytes, it just return "http:"
The text was updated successfully, but these errors were encountered: