mirror of
https://github.com/curl/curl.git
synced 2026-08-26 20:23:32 +03:00
urldata: merge "struct DynamicStatic" into "struct UrlState"
Both were used for the same purposes and there was no logical separation between them. Combined, this also saves 16 bytes in less holes in my test build. Closes #6798
This commit is contained in:
parent
d003b0213a
commit
95cbcec8f9
16 changed files with 127 additions and 141 deletions
|
|
@ -810,8 +810,8 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done)
|
|||
#endif
|
||||
|
||||
Curl_safefree(data->state.aptr.ref);
|
||||
if(data->change.referer && !Curl_checkheaders(data, "Referer")) {
|
||||
data->state.aptr.ref = aprintf("Referer: %s\r\n", data->change.referer);
|
||||
if(data->state.referer && !Curl_checkheaders(data, "Referer")) {
|
||||
data->state.aptr.ref = aprintf("Referer: %s\r\n", data->state.referer);
|
||||
if(!data->state.aptr.ref)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
if(Curl_hyper_header(data, headers, data->state.aptr.ref))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue