Merge branch 'jk/redact-h2h3-headers-fix' into maint-2.42
commite1813a335c3b072b64388f3360e3033fdffb74b0
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 28 Mar 2024 08:25:36 +0000 (28 09:25 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 16 Apr 2024 21:58:48 +0000 (16 23:58 +0200)
treeb52fd01515609d05cdd415b932da30395a895380
parentef0fc42829267ec004a557b9fad1a03f491b2244
parent0763c3a2c4f21a9e81990cc5cbee4a66d4efefcb
Merge branch 'jk/redact-h2h3-headers-fix' into maint-2.42

HTTP Header redaction code has been adjusted for a newer version of
cURL library that shows its traces differently from earlier
versions.

* jk/redact-h2h3-headers-fix:
  http: update curl http/2 info matching for curl 8.3.0
  http: factor out matching of curl http/2 trace lines

This backport to `maint-2.39` is needed to bring the following test
cases back to a working state in conjunction with recent libcurl
versions:

- t5559.17 GIT_TRACE_CURL redacts auth details
- t5559.18 GIT_CURL_VERBOSE redacts auth details
- t5559.38 cookies are redacted by default

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
http.c