fix gzip encoding

hi 

i just fixed the new gzip encoding and added total and itemsByPage in the parseResults function ...

thx