File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,8 @@ export class RavenCommandResponsePipeline<TStreamResult> extends EventEmitter {
149149 return ( stream . pipeline as any ) ( ...streams , callback || TypeUtil . NOOP ) as stream . Stream ;
150150 }
151151
152- private _appendBody ( s ) : void {
153- this . _body . append ( s ) ;
152+ private _appendBody ( s : Buffer | string ) : void {
153+ this . _body . append ( s . toString ( ) ) ;
154154 }
155155
156156 private _buildUp ( src : stream . Stream ) {
@@ -161,7 +161,7 @@ export class RavenCommandResponsePipeline<TStreamResult> extends EventEmitter {
161161 const opts = this . _opts ;
162162 const streams : stream . Stream [ ] = [ src ] ;
163163 if ( opts . collectBody ) {
164- src . on ( "data" , ( chunk ) => this . _appendBody ( chunk ) ) ;
164+ src . on ( "data" , ( chunk : Buffer | string ) => this . _appendBody ( chunk ) ) ;
165165 }
166166
167167 if ( opts . jsonAsync ) {
You can’t perform that action at this time.
0 commit comments