elastic / elasticsearch-rs

Official Elasticsearch Rust Client
https://www.elastic.co/guide/en/elasticsearch/client/rust-api/current/index.html
Apache License 2.0
702 stars 72 forks source link

Connection url ends in trailing forward slash #50

Closed russcam closed 4 years ago

russcam commented 4 years ago

This PR fixes a bug in relation to the usage of url::join(). If A url passed to Connection does not end in a trailing forward slash, a new url will be constructed from the passed url with a trailing forward slash. When joining a Connection url with an API path, the leading forward slash of the path is trimmed, so that the path is appended to the url rather than replacing any existing path segments.

Fixes #48