mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-30 12:30:16 +02:00
Fixed breaking bug for some sources (#561)
This commit is contained in:
@@ -145,7 +145,8 @@ class AppsProvider with ChangeNotifier {
|
||||
}
|
||||
var client = Client();
|
||||
StreamedResponse response = await client.send(req);
|
||||
var ext = response.headers['content-disposition']!.split('.').last;
|
||||
String ext =
|
||||
response.headers['content-disposition']?.split('.').last ?? 'apk';
|
||||
if (ext.endsWith('"') || ext.endsWith("other")) {
|
||||
ext = ext.substring(0, ext.length - 1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user