JuliaWeb / URIs.jl

URI parsing in Julia
https://juliahub.com/docs/URIs
Other
26 stars 17 forks source link

Unexpected joinpath result #21

Open fonsp opened 3 years ago

fonsp commented 3 years ago

JavaScript:

> new URL("./style.css", "http://x.org/wow/index.html").href
"http://x.org/wow/style.css"

> new URL("./style.css", "http://x.org/wow/index.html/").href
"http://x.org/wow/index.html/style.css"

URIs master:

julia> joinpath(URI("http://x.org/wow/index.html"), "./style.css")
URI("http://x.org/wow/index.html/style.css")

julia> joinpath(URI("http://x.org/wow/index.html/"), "./style.css")
URI("http://x.org/wow/index.html/style.css")
fonsp commented 2 years ago

@c42f Is this something that we should fix, or do you want to leave the behaviour to prevent a breaking change?