From aed68580432c917948c5904616e032111568f71e Mon Sep 17 00:00:00 2001 From: Nate Weaver Date: Fri, 13 Mar 2020 22:16:24 -0500 Subject: [PATCH] Simplify .utf8 --- Frameworks/Account/Credentials/URLRequest+RSWeb.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/Account/Credentials/URLRequest+RSWeb.swift b/Frameworks/Account/Credentials/URLRequest+RSWeb.swift index 311a51e43..1717dc10f 100755 --- a/Frameworks/Account/Credentials/URLRequest+RSWeb.swift +++ b/Frameworks/Account/Credentials/URLRequest+RSWeb.swift @@ -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)