mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-09 10:49:29 +00:00
fix(downloads): harden duplicate resolution and row controls
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user