Skip to content

Commit b40c34a

Browse files
authored
fix(storage): headers overridden (#384)
1 parent 9cfafdb commit b40c34a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Storage/StorageApi.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class StorageApi: @unchecked Sendable {
3131
@discardableResult
3232
func execute(_ request: HTTPRequest) async throws -> HTTPResponse {
3333
var request = request
34-
request.headers.merge(with: HTTPHeaders(configuration.headers))
34+
request.headers = HTTPHeaders(configuration.headers).merged(with: request.headers)
3535

3636
let response = try await http.send(request)
3737

0 commit comments

Comments
 (0)