mirror of
https://github.com/git/git
synced 2024-11-04 16:17:49 +00:00
Merge branch 'jk/redact-h2h3-headers-fix' into maint-2.41
* jk/redact-h2h3-headers-fix: http: handle both "h2" and "h2h3" in curl info lines
This commit is contained in:
commit
fb7d80edca
1 changed files with 2 additions and 1 deletions
3
http.c
3
http.c
|
@ -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, ']');
|
||||
|
|
Loading…
Reference in a new issue