diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-02-04 23:37:29 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-04-04 17:03:43 +0200 |
commit | ef6be35bae1fe501fecd9a2a21eb5d03ddff4243 (patch) | |
tree | bb92bc620a0d852ed0084c353780763ee3fa73a2 /lib/url.c | |
parent | ac887eedbc17a0d78b11ff467858c76a5127d1f4 (diff) |
CURLOPT_HEADEROPT: added
Modified the logic so that CURLOPT_HEADEROPT now controls if PROXYHEADER
is actually used or not.
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 8 |
1 files changed, 8 insertions, 0 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 |