Improve content type detection
Merge pull request #86 from inhies/f.gzip

Improve content type detection

Thanks, @inhies