]> Pileus Git - ~andy/git/commitdiff
remote-curl: hoist gzip buffer size to top of post_rpc
authorJeff King <peff@peff.net>
Wed, 31 Oct 2012 11:20:15 +0000 (07:20 -0400)
committerJeff King <peff@peff.net>
Wed, 31 Oct 2012 11:45:08 +0000 (07:45 -0400)
When we gzip the post data for a smart-http rpc request, we
compute the gzip body and its size inside the "use_gzip"
conditional. We keep track of the body after the conditional
ends, but not the size. Let's remember both, which will
enable us to retry failed gzip requests in a future patch.

Signed-off-by: Jeff King <peff@peff.net>

No differences found