mirror of
https://github.com/curl/curl.git
synced 2026-08-25 21:03:34 +03:00
url: add option CURLOPT_SUPPRESS_CONNECT_HEADERS
- Add new option CURLOPT_SUPPRESS_CONNECT_HEADERS to allow suppressing proxy CONNECT response headers from the user callback functions CURLOPT_HEADERFUNCTION and CURLOPT_WRITEFUNCTION. - Add new tool option --suppress-connect-headers to expose CURLOPT_SUPPRESS_CONNECT_HEADERS and allow suppressing proxy CONNECT response headers from --dump-header and --include. Assisted-by: Jay Satiro Assisted-by: CarloCannas@users.noreply.github.com Closes https://github.com/curl/curl/pull/783
This commit is contained in:
parent
ec1d0ed1c1
commit
d2bcf1e3e2
20 changed files with 245 additions and 12 deletions
|
|
@ -2894,6 +2894,9 @@ CURLcode Curl_setopt(struct Curl_easy *data, CURLoption option,
|
|||
case CURLOPT_CONNECT_TO:
|
||||
data->set.connect_to = va_arg(param, struct curl_slist *);
|
||||
break;
|
||||
case CURLOPT_SUPPRESS_CONNECT_HEADERS:
|
||||
data->set.suppress_connect_headers = (0 != va_arg(param, long))?TRUE:FALSE;
|
||||
break;
|
||||
default:
|
||||
/* unknown tag and its companion, just ignore: */
|
||||
result = CURLE_UNKNOWN_OPTION;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue