Revision 132b70a2ed6d952e8142981474b41884ff93b780 authored by Jeff King on 28 September 2013, 08:31:11 UTC, committed by Jonathan Nieder on 30 September 2013, 20:04:45 UTC
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>
1 parent 3d1fb76
History
File Mode Size
fnmatch
nedmalloc
poll
regex
vcbuild
win32
basename.c -rw-r--r-- 334 bytes
bswap.h -rw-r--r-- 1.0 KB
fopen.c -rw-r--r-- 931 bytes
hstrerror.c -rw-r--r-- 513 bytes
inet_ntop.c -rw-r--r-- 4.8 KB
inet_pton.c -rw-r--r-- 6.8 KB
memmem.c -rw-r--r-- 752 bytes
mingw.c -rw-r--r-- 45.6 KB
mingw.h -rw-r--r-- 9.0 KB
mkdir.c -rw-r--r-- 468 bytes
mkdtemp.c -rw-r--r-- 153 bytes
mmap.c -rw-r--r-- 747 bytes
msvc.c -rw-r--r-- 113 bytes
msvc.h -rw-r--r-- 1.1 KB
obstack.c -rw-r--r-- 13.8 KB
obstack.h -rw-r--r-- 19.1 KB
pread.c -rw-r--r-- 433 bytes
precompose_utf8.c -rw-r--r-- 4.6 KB
precompose_utf8.h -rw-r--r-- 1.3 KB
qsort.c -rw-r--r-- 1.1 KB
setenv.c -rw-r--r-- 857 bytes
snprintf.c -rw-r--r-- 1.5 KB
strcasestr.c -rw-r--r-- 431 bytes
strlcpy.c -rw-r--r-- 247 bytes
strtoimax.c -rw-r--r-- 214 bytes
strtoumax.c -rw-r--r-- 217 bytes
terminal.c -rw-r--r-- 2.5 KB
terminal.h -rw-r--r-- 142 bytes
unsetenv.c -rw-r--r-- 591 bytes
win32.h -rw-r--r-- 878 bytes
win32mmap.c -rw-r--r-- 907 bytes
winansi.c -rw-r--r-- 6.9 KB

back to top