UI/updater: Fix incorrect inflate use

Same issue as 77ceb97 corrected but for POST responses.
This commit is contained in:
Richard Stanway
2017-03-10 16:19:04 +01:00
parent 723d25e0ed
commit a8106115d9

View File

@@ -36,10 +36,10 @@ public:
static bool ReadZippedHTTPData(string &responseBuf, z_stream *strm,
string &zipBuf, const uint8_t *buffer, DWORD outSize)
{
do {
strm->avail_in = outSize;
strm->next_in = buffer;
strm->avail_in = outSize;
strm->next_in = buffer;
do {
strm->avail_out = (uInt)zipBuf.size();
strm->next_out = (Bytef *)zipBuf.data();