url: set default upload flags to CURLULFLAG_SEEN

As documented. Not doing this was a regression.

Follow-up to 6758aa722d

Reported by Codex Security

Closes #21217
This commit is contained in:
Daniel Stenberg 2026-04-04 13:11:20 +02:00
parent 3b8bb1a86a
commit 6d6d81e393
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -426,6 +426,7 @@ void Curl_init_userdefined(struct Curl_easy *data)
set->sep_headers = TRUE; /* separated header lists by default */
set->buffer_size = READBUFFER_SIZE;
set->upload_buffer_size = UPLOADBUFFER_DEFAULT;
set->upload_flags = CURLULFLAG_SEEN;
set->happy_eyeballs_timeout = CURL_HET_DEFAULT;
set->upkeep_interval_ms = CURL_UPKEEP_INTERVAL_DEFAULT;
set->maxconnects = DEFAULT_CONNCACHE_SIZE; /* for easy handles */