diff --git a/pack.js b/pack.js index dd504a4..2770781 100644 --- a/pack.js +++ b/pack.js @@ -76,6 +76,11 @@ Pack.prototype.entry = function(header, buffer, callback) { process.nextTick(callback); return; } + if (header.type !== 'file' && header.type !== 'contigious-file') { + this.push(headers.encode(header)); + process.nextTick(callback); + return; + } this.push(headers.encode(header)); this._stream = stream;