http_request: factor out curlinfo_strbuf
authorJeff King <peff@peff.net>
Sat, 28 Sep 2013 08:31:11 +0000 (04:31 -0400)
committerJonathan Nieder <jrnieder@gmail.com>
Mon, 30 Sep 2013 20:04:45 +0000 (13:04 -0700)
When we retrieve the content-type of an http response, curl
gives us a pointer to internal storage, which we then copy
into a strbuf. Let's factor out the get-and-copy routine,
which can be used for getting other curl info.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
No differences found