File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ function compression (options) {
85
85
}
86
86
87
87
return stream
88
- ? stream . write ( toBuffer ( chunk , encoding ) , cb || encoding )
89
- : _write . call ( this , chunk , encoding )
88
+ ? stream . write ( toBuffer ( chunk , encoding ) , encoding , cb )
89
+ : _write . call ( this , chunk , encoding , cb )
90
90
}
91
91
92
92
res . end = function end ( chunk , encoding , cb ) {
@@ -104,15 +104,15 @@ function compression (options) {
104
104
}
105
105
106
106
if ( ! stream ) {
107
- return _end . call ( this , chunk , encoding )
107
+ return _end . call ( this , chunk , encoding , cb )
108
108
}
109
109
110
110
// mark ended
111
111
ended = true
112
112
113
113
// write Buffer for Node.js 0.8
114
114
return chunk
115
- ? stream . end ( toBuffer ( chunk , encoding ) , cb || encoding )
115
+ ? stream . end ( toBuffer ( chunk , encoding ) , encoding , cb )
116
116
: stream . end ( )
117
117
}
118
118
You can’t perform that action at this time.
0 commit comments