🚑 Fix reading of local file header
This commit is contained in:
parent
4fb3d1322c
commit
e952f714df
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ import streamSetMaxLength from './streams/streamSetMaxLength';
|
|||
* and must transparently span across multiple disks if necessary.
|
||||
*/
|
||||
export default function extractFileStream(file: ISsnFileEntry, inputStream: stream.Readable): stream.Readable {
|
||||
const localFileHeader = new DataView(inputStream.read(30));
|
||||
const headerBuffer: Buffer = inputStream.read(30);
|
||||
const localFileHeader = new DataView(headerBuffer.buffer);
|
||||
|
||||
//Local file header signature
|
||||
if (localFileHeader.getUint32(0, true) !== 0x04034B50) {
|
||||
|
|
Loading…
Reference in a new issue