softwaremill / sttp-model

Simple Scala HTTP model
https://softwaremill.com/open-source
Apache License 2.0
43 stars 28 forks source link

Adding path to URI results in a url containing empty segment #98

Closed ashwinbhaskar closed 3 years ago

ashwinbhaskar commented 3 years ago
val baseUri = uri"http://fake-api.foo.io/v1"
val strPath = "/qwerty/azerty/doe"
baseUri.addPath(uri"$strPath".path)

res7: sttp.model.Uri = http://fake-api.foo.io/v1//qwerty/azerty/doe  -- there is a double slash after v1
adamw commented 3 years ago

Thanks for the report!