of the loop to get the state transition to happen.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10781
7a7537e8-13f0-0310-91df-
b6672ffda945
else
bytes = 0;
- if (bytes <= 0)
+ if (bytes < 0)
return (bytes);
+ else if (bytes == 0)
+ break;
http->data_remaining -= bytes;
http->stream.avail_in += bytes;
return;
}
- if ((zerr = inflateInit2(&(http->stream), 32 + 15)) < Z_OK)
+ if ((zerr = inflateInit2(&(http->stream),
+ coding == _HTTP_CODING_INFLATE ? 15 : 31))
+ < Z_OK)
{
free(http->dbuffer);
http->dbuffer = NULL;