mirror of
https://github.com/zapstore/zapstore.git
synced 2026-10-05 12:38:24 +00:00
Send header for download type
This commit is contained in:
@@ -726,6 +726,10 @@ abstract class PackageManager extends StateNotifier<PackageManagerState> {
|
|||||||
'${appId}_${DateTime.now().millisecondsSinceEpoch}_${UniqueKey()}',
|
'${appId}_${DateTime.now().millisecondsSinceEpoch}_${UniqueKey()}',
|
||||||
url: downloadUrl,
|
url: downloadUrl,
|
||||||
filename: fileName,
|
filename: fileName,
|
||||||
|
headers: {
|
||||||
|
'X-Zapstore-Client': 'app',
|
||||||
|
'X-Zapstore-Download-Type': hasUpdate(appId, target) ? 'update' : 'install',
|
||||||
|
},
|
||||||
updates: Updates.statusAndProgress,
|
updates: Updates.statusAndProgress,
|
||||||
requiresWiFi: false,
|
requiresWiFi: false,
|
||||||
retries: 10,
|
retries: 10,
|
||||||
|
|||||||
Reference in New Issue
Block a user