MCPcopy Index your code
hub / github.com/git/git / http_append_auth_header

Function http_append_auth_header

http.c:625–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623}
624
625struct 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
638static void init_curl_http_auth(CURL *result)
639{

Callers 4

http_requestFunction · 0.85
probe_rpcFunction · 0.85
post_rpcFunction · 0.85

Calls 2

strbuf_addfFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected