| 2012 | } |
| 2013 | |
| 2014 | static 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" |
no test coverage detected