From 9ffad8eb1329bb35c8988115ac7ed85cf91ef955 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 8 Dec 2017 16:07:01 +0100 Subject: curl: don't set CURLOPT_INTERLEAVEDATA That data is only ever used by the CURLOPT_INTERLEAVEFUNCTION callback and that option isn't set or used by the curl tool! Updates the 9 tests that verify --libcurl Closes #2167 --- src/tool_operate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tool_operate.c') diff --git a/src/tool_operate.c b/src/tool_operate.c index 5401955af..fe7b65200 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -864,7 +864,7 @@ static CURLcode operate_do(struct GlobalConfig *global, /* where to store */ my_setopt(curl, CURLOPT_WRITEDATA, &outs); - my_setopt(curl, CURLOPT_INTERLEAVEDATA, &outs); + if(metalink || !config->use_metalink) /* what call to write */ my_setopt(curl, CURLOPT_WRITEFUNCTION, tool_write_cb); -- cgit v1.2.3