diff options
Diffstat (limited to 'http-backend.c')
-rw-r--r-- | http-backend.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/http-backend.c b/http-backend.c index c74cb03a70..ab5015d9d9 100644 --- a/http-backend.c +++ b/http-backend.c @@ -275,12 +275,9 @@ static void inflate_request(const char *prog_name, int out) unsigned char in_buf[8192]; unsigned char out_buf[8192]; unsigned long cnt = 0; - int ret; memset(&stream, 0, sizeof(stream)); - ret = inflateInit2(&stream, (15 + 16)); - if (ret != Z_OK) - die("cannot start zlib inflater, zlib err %d", ret); + git_inflate_init_gzip_only(&stream); while (1) { ssize_t n = xread(0, in_buf, sizeof(in_buf)); |