Uri.Authority.toString renders leading double slash #784
Labels
bug
help wanted
Identifies issues that the core team will likely not have time to work on
t:core
Issues related to the akka-http-core module
t:model
Issues around the model classes and its functionality
Milestone
While the overall rendering of URIs is fine,
Uri.Authority.toString
will render leading double slashes (which will also fail the round-tripUri.Authority.parse(authority.toString)
):This doesn't seem to be covered by the spec.
https://tools.ietf.org/html/rfc3986#section-3:
So, the double slashes belong to the
hier-part
and not to the authority.In URI we could move the rendering of the double slashes from
renderAuthority
(which is used inAuthority.toString
) torenderUriWithoutFragment
. Hopefully making this change won't lead to much breakage.The text was updated successfully, but these errors were encountered: