Skip to content

Commit

Permalink
fix(cli): decode name from url
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed Jul 5, 2024
1 parent fb3a3f6 commit d5aa490
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/download/download-engine/engine/base-download-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ export default class BaseDownloadEngine extends EventEmitter<BaseDownloadEngineE
}

protected static async _createDownloadFile(parts: string[], fetchStream: BaseDownloadEngineFetchStream) {
const localFileName = new URL(parts[0], "https://example").pathname.split("/")
.pop() || "";
const localFileName = decodeURIComponent(new URL(parts[0], "https://example").pathname.split("/")
.pop() || "");
const downloadFile: DownloadFile = {
totalSize: 0,
parts: [],
Expand Down

0 comments on commit d5aa490

Please sign in to comment.