Skip to content

Commit

Permalink
Merge branch 'jk/redact-h2h3-headers-fix' into maint-2.41
Browse files Browse the repository at this point in the history
* jk/redact-h2h3-headers-fix:
  http: handle both "h2" and "h2h3" in curl info lines
  • Loading branch information
gitster committed Jun 24, 2023
2 parents fe86abd + db30130 commit fb7d80e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,8 @@ static void redact_sensitive_info_header(struct strbuf *header)
* h2h3 [<header-name>: <header-val>]
*/
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, ']');
Expand Down

0 comments on commit fb7d80e

Please sign in to comment.