This repository was archived by the owner on Mar 11, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 11# UNRELEASED
22- [ NEW] Added option for client to authenticate with IAM token server.
3+ - [ FIXED] Case where ` .resume() ` was called on an undefined response.
34
45# 3.0.2 (2019-01-07)
56- [ FIXED] Remove unnecessary ` @types/nano ` dependancy.
Original file line number Diff line number Diff line change @@ -108,14 +108,16 @@ var processState = function(r, callback) {
108108 return ;
109109 }
110110
111- // pass response events/data to awaiting client
112- if ( r . eventRelay ) {
113- r . eventRelay . resume ( ) ;
114- }
115- if ( r . clientStream . destinations . length > 0 ) {
116- r . response . pipe ( r . clientStream . passThroughReadable ) ;
111+ if ( r . response ) {
112+ // pass response events/data to awaiting client
113+ if ( r . eventRelay ) {
114+ r . eventRelay . resume ( ) ;
115+ }
116+ if ( r . clientStream . destinations . length > 0 ) {
117+ r . response . pipe ( r . clientStream . passThroughReadable ) ;
118+ }
119+ r . response . resume ( ) ;
117120 }
118- r . response . resume ( ) ;
119121
120122 // [5] => Return response to awaiting client.
121123 callback ( new Error ( 'No retry requested' ) ) ; // no retry
You can’t perform that action at this time.
0 commit comments