fix logic in HTTP deflate decomress function