fix(downloads): harden duplicate resolution and row controls

This commit is contained in:
NimBold
2026-07-29 18:28:46 +03:30
parent 546be23c91
commit 29bbb009b5
17 changed files with 248 additions and 89 deletions
+7
View File
@@ -54,6 +54,13 @@ export interface AddDownloadDraftRow {
selected?: boolean;
}
/**
* Redirect targets are request-time details, not durable download identity.
* Providers such as GitHub sign those targets with short-lived credentials,
* so retries must start from the source URL and resolve a fresh target.
*/
export const durableDownloadUrl = (sourceUrl: string): string => sourceUrl.trim();
const ALLOWED_SCHEMES = new Set(['http:', 'https:', 'ftp:', 'sftp:']);
type ParsedInput = {