mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:03:36 +03:00
parent
36542b7349
commit
2cb868242d
7 changed files with 27 additions and 36 deletions
|
|
@ -1754,12 +1754,8 @@ static CURLcode setopt_cptr(struct Curl_easy *data, CURLoption option,
|
|||
/*
|
||||
* String to set in the HTTP Referer: field.
|
||||
*/
|
||||
if(data->state.referer_alloc) {
|
||||
Curl_safefree(data->state.referer);
|
||||
data->state.referer_alloc = FALSE;
|
||||
}
|
||||
result = Curl_setstropt(&s->str[STRING_SET_REFERER], ptr);
|
||||
data->state.referer = s->str[STRING_SET_REFERER];
|
||||
Curl_bufref_set(&data->state.referer, s->str[STRING_SET_REFERER], 0, NULL);
|
||||
break;
|
||||
|
||||
case CURLOPT_USERAGENT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue