-
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
Hi, if the URL is like '127.0.0.1:8080/a/b', the result is '8080/a/b', which seems incorrect #149
Comments
|
great find! this appears to be two issues. issue #1: '127.0.0.1:8080/a/b'` is actually ambiguous: it could be parsed as
or as
in this ambiguity, furl defaults to the latter and parses to force furl to parse >>> f = furl('https://127.0.0.1:8080/a/b')
>>> f.url
'https://127.0.0.1:8080/a/b' issue #2: that said, when furl parses a bit more digging reveals it's the fact that the segment before the colon (which is a scheme separator, eg >>> f = furl('t.t:8000/a/b')
>>> f.url
t.t:8000/a/b
>>> f = furl('1.1:8000/a/b')
>>> f.url
8000/a/b
>>> f = furl('t.5:8000/a/b')
>>> f.url
t.5:8000/a/b this is likely an implementation detail of how https://docs.python.org/3/library/urllib.parse.html parses single colon schemes, like |
No description provided.
The text was updated successfully, but these errors were encountered: