Re: [PATCH 0/5] Protocol v2 fix: http and auth
- From
Jeff King <peff@peff.net>
- Date
- Feb 21, 2019, 13:47 UTC
- Message-ID
- <20190221134758.GB21406@sigill.intra.peff.net>
- In-Reply-To
- <cover.1550170980.git.jonathantanmy@google.com>
On Thu, Feb 14, 2019 at 11:06:34AM -0800, Jonathan Tan wrote:
Show 9 quoted lines
> Peff noticed an issue with my http auth in protocol v2 patch earlier > [1], and in the ensuing discussion, I thought that it would be best to > make v2 use post_rpc() as well (to be the same as v0/v1) instead of > using its own functions, to fix this issue and try to avoid a similar > issue in the future. Besides that, there is also a net reduction in > lines of code. > > So here are the patches. First 4 are refactoring - the last one has the > actual change. This is on the master branch.
I think this is the right approach. Patches 1-4 look pretty nice. I didn't see anything wrong with the code in the 5th one, but I did have some thoughts about how we might be able to do it a bit more cleanly (though I will not at all be surprised if they turn out to be bad suggestions).
-Peff