- Shmulik Regev fixed so that the final CRLF of HTTP response headers are sent
to the debug callback. - Shmulik Regev added CURLOPT_HTTP_CONTENT_DECODING and CURLOPT_HTTP_TRANSFER_DECODING that if set to zero will disable libcurl's internal decoding of content or transfer encoded content. This may be preferable in cases where you use libcurl for proxy purposes or similar. The command line tool got a --raw option to disable both at once.
This commit is contained in:
13
lib/url.c
13
lib/url.c
@@ -1725,6 +1725,19 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
|
||||
data->set.ssh_private_key = va_arg(param, char *);
|
||||
break;
|
||||
|
||||
case CURLOPT_HTTP_TRANSFER_DECODING:
|
||||
/*
|
||||
* disable libcurl transfer encoding is used
|
||||
*/
|
||||
data->set.http_te_skip = (bool)(0 == va_arg(param, long));
|
||||
break;
|
||||
|
||||
case CURLOPT_HTTP_CONTENT_DECODING:
|
||||
/*
|
||||
* raw data passed to the application when content encoding is used
|
||||
*/
|
||||
data->set.http_ce_skip = (bool)(0 == va_arg(param, long));
|
||||
break;
|
||||
default:
|
||||
/* unknown tag and its companion, just ignore: */
|
||||
result = CURLE_FAILED_INIT; /* correct this */
|
||||
|
Reference in New Issue
Block a user