fix http request and gzip encoding
Merge pull request #11 from d4m/master

fix http request and gzip encoding