Skip to content

Commit d1b0672

Browse files
authored
fix(storage): getSignedURLs method using wrong encoder (#352)
1 parent 2611b09 commit d1b0672

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/Storage/StorageFileApi.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,13 @@ public class StorageFileApi: StorageApi {
219219
let paths: [String]
220220
}
221221

222+
let encoder = JSONEncoder()
223+
222224
let response = try await execute(
223225
Request(
224226
path: "/object/sign/\(bucketId)",
225227
method: .post,
226-
body: configuration.encoder.encode(
228+
body: encoder.encode(
227229
Params(expiresIn: expiresIn, paths: paths)
228230
)
229231
)

0 commit comments

Comments
 (0)