Skip to content

Commit

Permalink
fix(storage): getSignedURLs method using wrong encoder (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev committed Apr 22, 2024
1 parent 2611b09 commit d1b0672
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Storage/StorageFileApi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,13 @@ public class StorageFileApi: StorageApi {
let paths: [String]
}

let encoder = JSONEncoder()

let response = try await execute(
Request(
path: "/object/sign/\(bucketId)",
method: .post,
body: configuration.encoder.encode(
body: encoder.encode(
Params(expiresIn: expiresIn, paths: paths)
)
)
Expand Down

0 comments on commit d1b0672

Please sign in to comment.