hyper: does not support disabling CURLOPT_HTTP_TRANSFER_DECODING

Simply because hyper doesn't have this ability. Mentioned in docs now.

Skip test 326 then

Closes #7889
This commit is contained in:
Daniel Stenberg 2021-10-22 08:44:14 +02:00
parent f852f908a9
commit 1732502cb0
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
5 changed files with 10 additions and 2 deletions

View File

@ -49,6 +49,7 @@ over the wire with Hyper.
The hyper backend doesn't support The hyper backend doesn't support
- `CURLOPT_IGNORE_CONTENT_LENGTH` - `CURLOPT_IGNORE_CONTENT_LENGTH`
- `--raw` and disabling `CURLOPT_HTTP_TRANSFER_DECODING`
- RTSP - RTSP
## Remaining issues ## Remaining issues

View File

@ -49,7 +49,8 @@ if(curl) {
} }
.fi .fi
.SH AVAILABILITY .SH AVAILABILITY
Added in 7.16.2 Added in 7.16.2 Does not work with the hyper backend (it will always have
transfer decoding enabled).
.SH RETURN VALUE .SH RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
.SH "SEE ALSO" .SH "SEE ALSO"

View File

@ -2516,8 +2516,12 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
/* /*
* disable libcurl transfer encoding is used * disable libcurl transfer encoding is used
*/ */
#ifndef USE_HYPER
data->set.http_te_skip = (0 == va_arg(param, long)) ? TRUE : FALSE; data->set.http_te_skip = (0 == va_arg(param, long)) ? TRUE : FALSE;
break; break;
#else
return CURLE_NOT_BUILT_IN; /* hyper doesn't support */
#endif
case CURLOPT_HTTP_CONTENT_DECODING: case CURLOPT_HTTP_CONTENT_DECODING:
/* /*

View File

@ -42,7 +42,6 @@
%if hyper %if hyper
265 265
266 266
326
357 357
358 358
359 359

View File

@ -39,6 +39,9 @@ line 1
# #
# Client-side # Client-side
<client> <client>
<features>
!hyper
</features>
<server> <server>
http http
</server> </server>