compression detection bug fixed

Signed-off-by: nixnodes <code@nixnodes.net>