Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/http.c b/http.c
index 7f7bc85dd0..fb4ecf911f 100644
--- a/http.c
+++ b/http.c
@@ -622,6 +622,8 @@ static int redact_sensitive_header(struct strbuf *header, size_t offset)
static int match_curl_h2_trace(const char *line, const char **out)
{
+ const char *p;
+
/*
* curl prior to 8.1.0 gives us:
*
@@ -633,6 +635,18 @@ static int match_curl_h2_trace(const char *line, const char **out)
skip_iprefix(line, "h2 [", out))
return 1;
+ /*
+ * curl 8.3.0 uses:
+ * [HTTP/2] [<stream-id>] [<header-name>: <header-val>]
+ * where <stream-id> is numeric.
+ */
+ if (skip_iprefix(line, "[HTTP/2] [", &p)) {
+ while (isdigit(*p))
+ p++;
+ if (skip_prefix(p, "] [", out))
+ return 1;
+ }
+
return 0;
}