Skip to content

Commit 866a039

Browse files
authored
fix(auth): header being overridden (#379)
1 parent 4ba1c7a commit 866a039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Auth/Internal/APIClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct APIClient: Sendable {
2323

2424
func execute(_ request: HTTPRequest) async throws -> HTTPResponse {
2525
var request = request
26-
request.headers.merge(with: HTTPHeaders(configuration.headers))
26+
request.headers = HTTPHeaders(configuration.headers).merged(with: request.headers)
2727

2828
let response = try await http.send(request)
2929

0 commit comments

Comments
 (0)