converted decompression to use streams rather than callbacks
This commit is contained in:
@ -15,12 +15,11 @@ if (!Readable) {
|
||||
}
|
||||
|
||||
function MockIncommingMessage() {
|
||||
var self = this;
|
||||
Readable.call(this);
|
||||
|
||||
Readable.call(self);
|
||||
|
||||
self.setEncoding = sinon.stub();
|
||||
self._read = function () {};
|
||||
this.setEncoding = sinon.stub();
|
||||
this.headers = {};
|
||||
this._read = function () {};
|
||||
}
|
||||
util.inherits(MockIncommingMessage, Readable);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user