Skip to content

Commit 94676d1

Browse files
mvollrathjihoonl
authored andcommitted
Don't allow unsupported compression types (#306)
Fix forward compatibility issues by not requesting compression from the server that we can't actually decompress.
1 parent 41297f4 commit 94676d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/Topic.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function Topic(options) {
4343
this.compression !== 'cbor' && this.compression !== 'none') {
4444
this.emit('warning', this.compression +
4545
' compression is not supported. No compression will be used.');
46+
this.compression = 'none';
4647
}
4748

4849
// Check if throttle rate is negative

0 commit comments

Comments
 (0)