diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-10-22 08:44:14 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-10-22 12:54:08 +0200 |
commit | 1732502cb0bd255fb65ae351f61888d8f4f04ed6 (patch) | |
tree | 3e51b68d50e3adba64eb12665c9252e6f0fd3f36 | |
parent | f852f908a9dd4170371490567ad77d44a9d5d752 (diff) | |
download | curl-1732502cb0bd255fb65ae351f61888d8f4f04ed6.tar.gz |
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
-rw-r--r-- | docs/HYPER.md | 1 | ||||
-rw-r--r-- | docs/libcurl/opts/CURLOPT_HTTP_TRANSFER_DECODING.3 | 3 | ||||
-rw-r--r-- | lib/setopt.c | 4 | ||||
-rw-r--r-- | tests/data/DISABLED | 1 | ||||
-rw-r--r-- | tests/data/test326 | 3 |
5 files changed, 10 insertions, 2 deletions
diff --git a/docs/HYPER.md b/docs/HYPER.md index da6c66337..4dd3c74c4 100644 --- a/docs/HYPER.md +++ b/docs/HYPER.md @@ -49,6 +49,7 @@ over the wire with Hyper. The hyper backend doesn't support - `CURLOPT_IGNORE_CONTENT_LENGTH` +- `--raw` and disabling `CURLOPT_HTTP_TRANSFER_DECODING` - RTSP ## Remaining issues diff --git a/docs/libcurl/opts/CURLOPT_HTTP_TRANSFER_DECODING.3 b/docs/libcurl/opts/CURLOPT_HTTP_TRANSFER_DECODING.3 index 718942380..96ade1c30 100644 --- a/docs/libcurl/opts/CURLOPT_HTTP_TRANSFER_DECODING.3 +++ b/docs/libcurl/opts/CURLOPT_HTTP_TRANSFER_DECODING.3 @@ -49,7 +49,8 @@ if(curl) { } .fi .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 Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. .SH "SEE ALSO" diff --git a/lib/setopt.c b/lib/setopt.c index 65fe252f4..56d9c4992 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -2516,8 +2516,12 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param) /* * disable libcurl transfer encoding is used */ +#ifndef USE_HYPER data->set.http_te_skip = (0 == va_arg(param, long)) ? TRUE : FALSE; break; +#else + return CURLE_NOT_BUILT_IN; /* hyper doesn't support */ +#endif case CURLOPT_HTTP_CONTENT_DECODING: /* diff --git a/tests/data/DISABLED b/tests/data/DISABLED index bb2955f43..46f135426 100644 --- a/tests/data/DISABLED +++ b/tests/data/DISABLED @@ -42,7 +42,6 @@ %if hyper 265 266 -326 357 358 359 diff --git a/tests/data/test326 b/tests/data/test326 index 25f201eae..56d4dcb35 100644 --- a/tests/data/test326 +++ b/tests/data/test326 @@ -39,6 +39,9 @@ line 1 # # Client-side <client> +<features> +!hyper +</features> <server> http </server> |