remote-curl: hoist gzip buffer size to top of post_rpc
commitdf126e108b899da133a980e900df39dfe57fcd59
authorJeff King <peff@peff.net>
Wed, 31 Oct 2012 11:20:15 +0000 (31 07:20 -0400)
committerJeff King <peff@peff.net>
Wed, 31 Oct 2012 11:45:08 +0000 (31 07:45 -0400)
treebd9b8267dd4a3122921554ac41359c18a1a86ee1
parent1960897ebc5a899a8e4ec3c2afc1d2325574fe41
remote-curl: hoist gzip buffer size to top of post_rpc

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>
remote-curl.c