Attempt fix
This commit is contained in:
parent
8fd1148cbd
commit
9654da1d4f
@ -179,7 +179,7 @@ public final class PushClient {
|
|||||||
@available(iOS 15.0, *)
|
@available(iOS 15.0, *)
|
||||||
private func post(_ request: URLRequest) async -> Data? {
|
private func post(_ request: URLRequest) async -> Data? {
|
||||||
do {
|
do {
|
||||||
let (data, response) = try await URLSession.shared.data(for: request)
|
let (data, response) : (Data, URLResponse) = try await URLSession.shared.data(for: request)
|
||||||
guard let httpResponse = response as? HTTPURLResponse else {
|
guard let httpResponse = response as? HTTPURLResponse else {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user