summaryrefslogtreecommitdiff
path: root/t/lib-git-daemon.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2013-02-06 05:39:52 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-02-06 07:50:56 -0800
commit3443db51a0f2a43061d4badc6a0065672386eae5 (patch)
tree7f5965d57f00c7c472db6513df0204a0915028c9 /t/lib-git-daemon.sh
parentt5551: fix expected error output (diff)
downloadtgif-3443db51a0f2a43061d4badc6a0065672386eae5.tar.xz
http_request: reset "type" strbuf before adding
Callers may pass us a strbuf which we use to record the content-type of the response. However, we simply appended to it rather than overwriting its contents, meaning that cruft in the strbuf gave us a bogus type. E.g., the multiple requests triggered by http_request could yield a type like "text/plainapplication/x-git-receive-pack-advertisement". Reported-by: Michael Schubert <mschub@elegosoft.com> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-git-daemon.sh')
0 files changed, 0 insertions, 0 deletions