Skip to content

Commit

Permalink
Merge pull request #5 from MihaelIsaev/master
Browse files Browse the repository at this point in the history
Fix client.post call
  • Loading branch information
twof authored Feb 14, 2019
2 parents a1121ea + c43d26d commit 8457fef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Twilio/Twilio.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public struct Twilio: TwilioProvider {
var headers = HTTPHeaders([])
headers.add(name: HTTPHeaderName.authorization, value: "Basic \(authKeyEncoded)")

return try container.client().post(
let client: Client = try container.make()
return client.post(
"https://api.twilio.com/2010-04-01/Accounts/\(self.accountId)/Messages.json",
headers: headers
) { request in
Expand Down

0 comments on commit 8457fef

Please sign in to comment.