| 623 | } |
| 624 | |
| 625 | struct curl_slist *http_append_auth_header(const struct credential *c, |
| 626 | struct curl_slist *headers) |
| 627 | { |
| 628 | if (c->authtype && c->credential) { |
| 629 | struct strbuf auth = STRBUF_INIT; |
| 630 | strbuf_addf(&auth, "Authorization: %s %s", |
| 631 | c->authtype, c->credential); |
| 632 | headers = curl_slist_append(headers, auth.buf); |
| 633 | strbuf_release(&auth); |
| 634 | } |
| 635 | return headers; |
| 636 | } |
| 637 | |
| 638 | static void init_curl_http_auth(CURL *result) |
| 639 | { |
no test coverage detected