mirror of
https://github.com/curl/curl.git
synced 2026-08-04 13:16:35 +03:00
CURLOPT_HEADEROPT: added
Modified the logic so that CURLOPT_HEADEROPT now controls if PROXYHEADER is actually used or not.
This commit is contained in:
parent
ac887eedbc
commit
ef6be35bae
9 changed files with 59 additions and 28 deletions
|
|
@ -1081,6 +1081,14 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
|
|||
data->set.proxyheaders = va_arg(param, struct curl_slist *);
|
||||
break;
|
||||
|
||||
case CURLOPT_HEADEROPT:
|
||||
/*
|
||||
* Set header option.
|
||||
*/
|
||||
arg = va_arg(param, long);
|
||||
data->set.sep_headers = (arg & CURLHEADER_SEPARATE)? TRUE: FALSE;
|
||||
break;
|
||||
|
||||
case CURLOPT_HTTP200ALIASES:
|
||||
/*
|
||||
* Set a list of aliases for HTTP 200 in response header
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue