removed debug print
simplified gzip header removal