Skip to content

Commit

Permalink
fix(storage): headers overridden (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev authored May 14, 2024
1 parent 9cfafdb commit b40c34a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Storage/StorageApi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b40c34a

Please # to comment.