Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
add: make pathless 'add [-u|-A]' warning a file-global function
[gitweb.git]
/
http.c
diff --git
a/http.c
b/http.c
index d868d8b3d97cc1a430e1680f2bc5f780b5e66a84..d9d1aad3be468394e39966c0b45e7e101b387b0c 100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-841,6
+841,7
@@
static int http_request(const char *url, struct strbuf *type,
if (type) {
char *t;
+ strbuf_reset(type);
curl_easy_getinfo(slot->curl, CURLINFO_CONTENT_TYPE, &t);
if (t)
strbuf_addstr(type, t);