Fix download status code to be a range

This commit is contained in:
Balazs Perlaki-Horvath 2024-09-11 21:49:51 +02:00
parent c6fba360d0
commit fd8aad0770

View File

@ -347,7 +347,7 @@ final class DownloadService: NSObject, URLSessionDelegate, URLSessionTaskDelegat
guard let httpResponse = downloadTask.response as? HTTPURLResponse else { return }
guard httpResponse.statusCode == 200 else {
guard (200..<300).contains(httpResponse.statusCode) else {
Task { @MainActor in
NotificationCenter.default.post(
name: .alert,