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

Function curlinfo_strbuf

http.c:2014–2024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2012}
2013
2014static CURLcode curlinfo_strbuf(CURL *curl, CURLINFO info, struct strbuf *buf)
2015{
2016 char *ptr;
2017 CURLcode ret;
2018
2019 strbuf_reset(buf);
2020 ret = curl_easy_getinfo(curl, info, &ptr);
2021 if (!ret && ptr)
2022 strbuf_addstr(buf, ptr);
2023 return ret;
2024}
2025
2026/*
2027 * Check for and extract a content-type parameter. "raw"

Callers 1

http_requestFunction · 0.85

Calls 1

strbuf_addstrFunction · 0.85

Tested by

no test coverage detected