tool_operate: reset the upload glob counter for next URL

Fixes #21402

Adjust test 2012 and 2013 accordingly

Closes #21403
This commit is contained in:
Daniel Stenberg 2026-04-21 17:51:26 +02:00
parent dcf535629b
commit b16be8e244
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 1 additions and 10 deletions

View file

@ -1364,6 +1364,7 @@ static CURLcode create_single(struct OperationConfig *config,
glob_cleanup(&state->inglob);
state->upidx = 0;
state->urlnode = u->next; /* next node */
state->upnum = 1;
continue;
}

View file

@ -82,11 +82,6 @@ Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
GET /%TESTNUMBER0002 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
</protocol>
<stdout>
%EMPTY

View file

@ -77,11 +77,6 @@ Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
GET /%TESTNUMBER0002 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
</protocol>
<stdout>
%EMPTY