You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, resolving ../baz against scheme:foo/bar should result in scheme:/baz.
However, output of this library differs from that.
$ python
Python 3.9.9 (main, Jan 10 2022, 18:52:39)
[GCC 11.2.1 20211127] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from rfc3986 import uri_reference
>>> b = uri_reference('scheme:foo/bar')
>>> r = uri_reference('../baz')
>>> t = r.resolve_with(b)
>>> t
URIReference(scheme='scheme', authority=None, path='baz', query=None, fragment=None)
>>> t.unsplit()
'scheme:baz'
>>>
I think there should be special handling such as "when .. segment appears but output stack is empty, set prepend_slash flag" or something like that.
The text was updated successfully, but these errors were encountered:
lo48576
changed the title
Resolution result is not consistent with RFC 3986 when the base has "rootless" path
Resolution result is not consistent with RFC 3986 when the base has "rootless" path without authority
Jan 10, 2022
remove_dot_segments
defined in RFC 3986 (section 5.2.4) sometimes add a leading slash when the base path is "rootless".So, resolving
../baz
againstscheme:foo/bar
should result inscheme:/baz
.However, output of this library differs from that.
I think there should be special handling such as "when
..
segment appears butoutput
stack is empty, setprepend_slash
flag" or something like that.The text was updated successfully, but these errors were encountered: