request: reset resp_trailer in new requests

Otherwise the trailer state lingers on into subsequent requests.

Follow-up to 29610e5f3d

Spotted by Codex Security

Closes #21112
This commit is contained in:
Daniel Stenberg 2026-03-27 09:11:43 +01:00
parent cfc86e4e04
commit 10d5177984
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -153,6 +153,7 @@ void Curl_req_hard_reset(struct SingleRequest *req, struct Curl_easy *data)
req->ignorebody = FALSE;
req->http_bodyless = FALSE;
req->chunk = FALSE;
req->resp_trailer = FALSE;
req->ignore_cl = FALSE;
req->upload_chunky = FALSE;
req->no_body = data->set.opt_no_body;