Skip to content

Commit

Permalink
Fix client.post call
Browse files Browse the repository at this point in the history
Related to hot fix in Vapor 3.2.1 https://github.com/vapor/vapor/releases/tag/3.2.1
  • Loading branch information
MihaelIsaev authored Feb 14, 2019
1 parent a1121ea commit c43d26d
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 c43d26d

Please sign in to comment.