fixed issue with Gzip mode not being correctly recognised, now I get a new problem...
(#299)