mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
request: cleanup the auth headers on soft rest as well
To avoid the risk them lingering around.
Follow-up to 3512b673dd
Closes #21311
This commit is contained in:
parent
67795ff730
commit
99ead4e0f0
1 changed files with 5 additions and 0 deletions
|
|
@ -65,6 +65,11 @@ CURLcode Curl_req_soft_reset(struct SingleRequest *req,
|
||||||
req->httpversion = 0;
|
req->httpversion = 0;
|
||||||
req->sendbuf_hds_len = 0;
|
req->sendbuf_hds_len = 0;
|
||||||
|
|
||||||
|
curlx_safefree(req->userpwd);
|
||||||
|
#ifndef CURL_DISABLE_PROXY
|
||||||
|
curlx_safefree(req->proxyuserpwd);
|
||||||
|
#endif
|
||||||
|
|
||||||
result = Curl_client_start(data);
|
result = Curl_client_start(data);
|
||||||
if(result)
|
if(result)
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue