mirror of
https://github.com/curl/curl.git
synced 2026-07-30 04:28:02 +03:00
Curl_http(), decomplexify
Split out adding of individual request headers into a switch. Check the connection http version only on fresh connections, use separate methods. Add TE: header directly without allocation. Add bit for indicating Connection: header has been added and custom headers should not do that again. Closes #18444
This commit is contained in:
parent
e00cb001c6
commit
4d040c71d7
25 changed files with 345 additions and 319 deletions
|
|
@ -320,7 +320,6 @@ CURLcode Curl_close(struct Curl_easy **datap)
|
|||
Curl_safefree(data->state.aptr.uagent);
|
||||
Curl_safefree(data->state.aptr.userpwd);
|
||||
Curl_safefree(data->state.aptr.accept_encoding);
|
||||
Curl_safefree(data->state.aptr.te);
|
||||
Curl_safefree(data->state.aptr.rangeline);
|
||||
Curl_safefree(data->state.aptr.ref);
|
||||
Curl_safefree(data->state.aptr.host);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue