rzane / file_store

🗄️ A unified interface for file storage backends
MIT License
19 stars 3 forks source link

Better joining of URL paths #14

Closed rzane closed 3 years ago

rzane commented 3 years ago

Avoid URI.merge/2 for appending path segments to URLs. It doesn't always have the desired effect.

For example, if a user configured base_url: "http://example.com/foo":

"http://example.com/foo"
|> URI.merge("bar")
|> URI.to_string
# "http://example.com/bar"