Fix S3 list operation for keys with space (#2497)

This commit is contained in:
Jonatan Kłosko 2024-02-25 17:04:58 +01:00 committed by GitHub
parent 7e165f309e
commit fac2bc7a53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -252,7 +252,7 @@ defmodule Livebook.FileSystem.S3.Client do
end
defp build_url(file_system, path, query) do
query_string = URI.encode_query(query)
query_string = URI.encode_query(query, :rfc3986)
query_string = if query_string != "", do: "?#{query_string}", else: ""
file_system.bucket_url <> path <> query_string