We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcada1a commit f16989aCopy full SHA for f16989a
Sources/Storage/StorageFileApi.swift
@@ -320,14 +320,16 @@ public class StorageFileApi: StorageApi {
320
path: String? = nil,
321
options: SearchOptions? = nil
322
) async throws -> [FileObject] {
323
+ let encoder = JSONEncoder()
324
+
325
var options = options ?? DEFAULT_SEARCH_OPTIONS
326
options.prefix = path ?? ""
327
328
return try await execute(
329
HTTPRequest(
330
url: configuration.url.appendingPathComponent("object/list/\(bucketId)"),
331
method: .post,
- body: configuration.encoder.encode(options)
332
+ body: encoder.encode(options)
333
)
334
335
.decoded(decoder: configuration.decoder)
0 commit comments