fix gzip header parsing in getContents
Merge pull request #14 from h0vhannes/master

fix gzip header parsing in getContents