mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-22 19:19:22 -04:00
Fix download status code to be a range
This commit is contained in:
parent
c6fba360d0
commit
fd8aad0770
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user