Skip to content

Commit

Permalink
Fixed headers not being added correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewangeta committed Jun 19, 2019
1 parent cac6113 commit 2802fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/StripeKit/API/StripeRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public struct StripeDefaultAPIHandler: StripeAPIHandler {
"Content-Type": "application/x-www-form-urlencoded"]
headers.forEach { _headers.replaceOrAdd(name: $0.name, value: $0.value) }

let request = try HTTPClient.Request(url: "\(path)?\(query)", method: method, headers: headers, body: body)
let request = try HTTPClient.Request(url: "\(path)?\(query)", method: method, headers: _headers, body: body)

return httpClient.execute(request: request).flatMapThrowing { response in
guard var byteBuffer = response.body else {
Expand Down

0 comments on commit 2802fdf

Please sign in to comment.