diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-11-21 16:09:57 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-11-21 16:09:57 +0100 |
commit | eba191d9ff7c904cc47a30f036783eb65b5a4af6 (patch) | |
tree | c1e6f43db34a089ec7ea4a476c3635b519d5d890 /src/tool_operate.c | |
parent | 48ecf0591c0be55f4ac9937a259441e3551c6903 (diff) | |
download | curl-bagder/curl-ssh-urls-options.tar.gz |
fixup set CURLOPT_URL on the same place as beforebagder/curl-ssh-urls-options
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 3 |
1 files changed, 1 insertions, 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); |