From eba191d9ff7c904cc47a30f036783eb65b5a4af6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 21 Nov 2021 16:09:57 +0100 Subject: fixup set CURLOPT_URL on the same place as before --- src/tool_operate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tool_operate.c b/src/tool_operate.c index ad378e74a..b9183c22a 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1227,8 +1227,6 @@ static CURLcode single_transfer(struct GlobalConfig *global, } #endif - my_setopt_str(curl, CURLOPT_URL, per->this_url); - if(!config->tcp_nodelay) my_setopt(curl, CURLOPT_TCP_NODELAY, 0L); @@ -1267,6 +1265,7 @@ static CURLcode single_transfer(struct GlobalConfig *global, else my_setopt(curl, CURLOPT_BUFFERSIZE, (long)BUFFER_SIZE); + my_setopt_str(curl, CURLOPT_URL, per->this_url); my_setopt(curl, CURLOPT_NOPROGRESS, global->noprogress?1L:0L); if(config->no_body) my_setopt(curl, CURLOPT_NOBODY, 1L); -- cgit v1.2.1