diff --git a/src/HttpResponse.h b/src/HttpResponse.h index 9c4b37082..8b46a24fc 100644 --- a/src/HttpResponse.h +++ b/src/HttpResponse.h @@ -314,7 +314,7 @@ struct HttpResponse : public AsyncSocket { /* If we are dedicated and have the 3kb then correct any 4kb to 3kb, * (they both share the windowBits = 9) */ - if (webSocketContextData->compression & DEDICATED_COMPRESSOR_3KB) { + if ((webSocketContextData->compression & CompressOptions::_COMPRESSOR_MASK) == DEDICATED_COMPRESSOR_3KB) { compressOptions = DEDICATED_COMPRESSOR_3KB; } }