Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] http-push: refactor lock-related headers creation for curl requests

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:46:01

Johannes Schindelin [off-list ref] writes:
Hi,

On Sat, 24 Jan 2009, Ray Chuan wrote:
quoted
Signed-off-by: Johannes Schindelin <redacted>
Make that an Acked-by:
quoted
+	if(options & DAV_HEADER_IF) {
+		strbuf_addf(&buf, "If: (<%s>)", lock->token);
+		dav_headers = curl_slist_append(dav_headers, buf.buf);
+		strbuf_reset(&buf);
BTW in case anyone is puzzled (like I was): curl_slist_append() takes a 
"char *" as second parameter, but does not take custody of the buffer; 
instead, it strdup()s it.  See
http://cool.haxx.se/cvs.cgi/curl/lib/sendf.c?rev=1.155&content-type=text/vnd.viewcvs-markup
for details.

BTNW this should be mentioned in the commit message, too, to spare other 
people the puzzlement.
Yeah, but your advice is too late --- I already lost a few minutes solving
my puzzlement with manpages.

Thanks, both.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help