Redact headers in info */
| 919 | |
| 920 | /* Redact headers in info */ |
| 921 | static void redact_sensitive_info_header(struct strbuf *header) |
| 922 | { |
| 923 | const char *sensitive_header; |
| 924 | |
| 925 | if (trace_curl_redact && |
| 926 | match_curl_h2_trace(header->buf, &sensitive_header)) { |
| 927 | if (redact_sensitive_header(header, sensitive_header - header->buf)) { |
| 928 | /* redaction ate our closing bracket */ |
| 929 | strbuf_addch(header, ']'); |
| 930 | } |
| 931 | } |
| 932 | } |
| 933 | |
| 934 | static void curl_dump_header(const char *text, unsigned char *ptr, size_t size, int hide_sensitive_header) |
| 935 | { |
no test coverage detected