sha1_file: add the ability to parse objects in "pack file format"
[gitweb.git] / http-push.c
index e281f70e544d1e59c47f61ce14a728ba5ef44a44..f761584d7edf25147b731405c2996478c7177935 100644 (file)
@@ -492,7 +492,7 @@ static void start_put(struct transfer_request *request)
 
        /* Set it up */
        memset(&stream, 0, sizeof(stream));
-       deflateInit(&stream, Z_BEST_COMPRESSION);
+       deflateInit(&stream, zlib_compression_level);
        size = deflateBound(&stream, len + hdrlen);
        request->buffer.buffer = xmalloc(size);