From b40c34a63fbbc0760d3f6e70ed7b69b08f9e70c8 Mon Sep 17 00:00:00 2001 From: Guilherme Souza Date: Tue, 14 May 2024 05:06:36 -0300 Subject: [PATCH] fix(storage): headers overridden (#384) --- Sources/Storage/StorageApi.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Storage/StorageApi.swift b/Sources/Storage/StorageApi.swift index 5ce825db..89ceb308 100644 --- a/Sources/Storage/StorageApi.swift +++ b/Sources/Storage/StorageApi.swift @@ -31,7 +31,7 @@ public class StorageApi: @unchecked Sendable { @discardableResult func execute(_ request: HTTPRequest) async throws -> HTTPResponse { var request = request - request.headers.merge(with: HTTPHeaders(configuration.headers)) + request.headers = HTTPHeaders(configuration.headers).merged(with: request.headers) let response = try await http.send(request)