summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-10-22 08:44:14 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-10-22 12:54:08 +0200
commit1732502cb0bd255fb65ae351f61888d8f4f04ed6 (patch)
tree3e51b68d50e3adba64eb12665c9252e6f0fd3f36 /lib/setopt.c
parentf852f908a9dd4170371490567ad77d44a9d5d752 (diff)
downloadcurl-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
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c4
1 files changed, 4 insertions, 0 deletions
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:
/*