Skip to content

Commit

Permalink
Refactor: update gzip file signature (#1163)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm authored Jun 13, 2024
1 parent e0c40bb commit 81f0402
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/types/files/archives/gzip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export default class Gzip extends SevenZip {
}

static getFileSignatures(): Buffer[] {
return [Buffer.from('1F8B', 'hex')];
return [
Buffer.from('1F8B08', 'hex'), // deflate
];
}
}
2 changes: 1 addition & 1 deletion src/types/files/archives/tar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class Tar extends Archive {
Buffer.from('7573746172003030', 'hex'),
Buffer.from('7573746172202000', 'hex'),
// .tar.gz / .tgz
Buffer.from('1F8B', 'hex'),
Buffer.from('1F8B08', 'hex'), // deflate
];
}

Expand Down

0 comments on commit 81f0402

Please sign in to comment.