diff --git a/http.c b/http.c index 9c67f76e648886..6b0515a2f12c86 100644 --- a/http.c +++ b/http.c @@ -771,7 +771,8 @@ static void redact_sensitive_info_header(struct strbuf *header) * h2h3 [: ] */ if (trace_curl_redact && - skip_iprefix(header->buf, "h2h3 [", &sensitive_header)) { + (skip_iprefix(header->buf, "h2h3 [", &sensitive_header) || + skip_iprefix(header->buf, "h2 [", &sensitive_header))) { if (redact_sensitive_header(header, sensitive_header - header->buf)) { /* redaction ate our closing bracket */ strbuf_addch(header, ']');