From 71b73f97b5897f68243e3ee27d0fd424ef025cb0 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Mon, 13 May 2019 17:31:37 +0200 Subject: [PATCH] Comments --- src/curl/curl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/curl/curl.c b/src/curl/curl.c index 0a6cde8a9..749094800 100644 --- a/src/curl/curl.c +++ b/src/curl/curl.c @@ -267,8 +267,11 @@ download_cb (char *bufptr, size_t size, size_t nitems, void *cls) * "Content-Type: application/json" header if @a add_json is set. * * @param ctx context to execute the job in - * @param eh curl easy handle for the request, will - * be executed AND cleaned up + * @param eh curl easy handle for the request, will be executed AND + * cleaned up. NOTE: the handle should _never_ have gotten + * any headers list, as that would then be ovverridden by + * @a jcc. Therefore, always pass custom headers as the + * @a job_headers parameter. * @param job_headers extra headers to add for this request * @param jcc callback to invoke upon completion * @param jcc_cls closure for @a jcc -- 2.25.1