only files should have a body
This commit is contained in:
parent
36abc0ac50
commit
23fa6ae77b
1 changed files with 5 additions and 0 deletions
5
pack.js
5
pack.js
|
@ -76,6 +76,11 @@ Pack.prototype.entry = function(header, buffer, callback) {
|
||||||
process.nextTick(callback);
|
process.nextTick(callback);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (header.type !== 'file' && header.type !== 'contigious-file') {
|
||||||
|
this.push(headers.encode(header));
|
||||||
|
process.nextTick(callback);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.push(headers.encode(header));
|
this.push(headers.encode(header));
|
||||||
this._stream = stream;
|
this._stream = stream;
|
||||||
|
|
Loading…
Reference in a new issue