remote-curl: reset headers on new request
commit90765ea81eab98cd8f26c406588f5a6ea6f4fe82
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 17 Apr 2024 00:02:26 +0000 (17 00:02 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Apr 2024 05:39:06 +0000 (16 22:39 -0700)
treef3f96a80091bb129a7a7d06c58c633c1ad3d5df3
parent7046f1d57240b6eb39af22c024d6fec4a6cfcb5d
remote-curl: reset headers on new request

When we retry a post_rpc request, we currently reuse the same headers as
before.  In the future, we'd like to be able to modify them based on the
result we get back, so let's reset them on each retry so we can avoid
sending potentially duplicate headers if the values change.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote-curl.c