Skip to content

Commit

Permalink
downloader: work with non-zip URLs
Browse files Browse the repository at this point in the history
Fixes #3953
  • Loading branch information
osy committed May 2, 2022
1 parent db40dc5 commit 98f9052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Platform/UTMData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ class UTMData: ObservableObject {
/// - Parameter components: Download URL components
@MainActor func downloadUTMZip(from components: URLComponents) {
guard let urlParameter = components.queryItems?.first(where: { $0.name == "url" })?.value,
urlParameter.contains(".zip"), let url = URL(string: urlParameter) else {
let url = URL(string: urlParameter) else {
showErrorAlert(message: NSLocalizedString("Failed to parse download URL.", comment: "UTMData"))
return
}
Expand Down

0 comments on commit 98f9052

Please sign in to comment.