Commit f84f6a80 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Report the zlib message if we have gunzip trouble

parent 1e10a0df
......@@ -546,7 +546,7 @@ cmd_http_gunzip_body(CMD_ARGS)
assert(Z_OK == inflateInit2(&vz, 31));
i = inflate(&vz, Z_FINISH);
if (i != Z_STREAM_END)
vtc_log(hp->vl, 0, "Gunzip error = %d", i);
vtc_log(hp->vl, 0, "Gunzip error = %d (%s)", i, vz.msg);
hp->bodyl = vz.total_out;
memcpy(hp->body, p, hp->bodyl);
free(p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment