Simplify .utf8

This commit is contained in:
Nate Weaver 2020-03-13 22:16:24 -05:00
parent 3af70f5c7c
commit aed6858043
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ public extension URLRequest {
URLQueryItem(name: "Email", value: credentials.username),
URLQueryItem(name: "Passwd", value: credentials.secret)
]
httpBody = postData.percentEncodedQuery?.data(using: String.Encoding.utf8)
httpBody = postData.percentEncodedQuery?.data(using: .utf8)
case .readerAPIKey:
let auth = "GoogleLogin auth=\(credentials.secret)"
setValue(auth, forHTTPHeaderField: HTTPRequestHeader.authorization)