content.push(compMethods); has all the compression bytes to be pushed. But the iteration of hello.compression from the options takes place later, making the options futile.

Isn't it? Please correct me if am wrong.