File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -188,11 +188,11 @@ export class CompressionFilter extends BaseFilter implements Filter {
188
188
constructor ( channelOptions : ChannelOptions , private sharedFilterConfig : SharedCompressionFilterConfig ) {
189
189
super ( ) ;
190
190
191
- const serverSupportedEncodings = sharedFilterConfig . serverSupportedEncodingHeader ?. split ( ',' ) ;
192
191
const compressionAlgorithmKey = channelOptions [ 'grpc.default_compression_algorithm' ] ;
193
192
if ( compressionAlgorithmKey !== undefined ) {
194
193
if ( isCompressionAlgorithmKey ( compressionAlgorithmKey ) ) {
195
194
const clientSelectedEncoding = CompressionAlgorithms [ compressionAlgorithmKey ] ;
195
+ const serverSupportedEncodings = sharedFilterConfig . serverSupportedEncodingHeader ?. split ( ',' ) ;
196
196
/**
197
197
* There are two possible situations here:
198
198
* 1) We don't have any info yet from the server about what compression it supports
You can’t perform that action at this time.
0 commit comments