]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
hyper: does not support disabling CURLOPT_HTTP_TRANSFER_DECODING
authorDaniel Stenberg <daniel@haxx.se>
Fri, 22 Oct 2021 06:44:14 +0000 (08:44 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 22 Oct 2021 10:54:08 +0000 (12:54 +0200)
Simply because hyper doesn't have this ability. Mentioned in docs now.

Skip test 326 then

Closes #7889

docs/HYPER.md
docs/libcurl/opts/CURLOPT_HTTP_TRANSFER_DECODING.3
lib/setopt.c
tests/data/DISABLED
tests/data/test326

index da6c663377b33b42a1a0edbf91c73694cff37321..4dd3c74c4087aa507da2f233238a62d81ae77b76 100644 (file)
@@ -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
index 7189423800152bb08d94a460baf779c71781360d..96ade1c304e9e59dbf69e35e7a229b589e3beb91 100644 (file)
@@ -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"
index 65fe252f4758ac5e5d190ddbaa878b5408611a50..56d9c49926c06edc8e95264807148cdab3f4167c 100644 (file)
@@ -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:
     /*
index bb2955f43621108f77e65be936c120f5f44e11b5..46f13542630db0cff2d130d28498d67b1f83bdc2 100644 (file)
@@ -42,7 +42,6 @@
 %if hyper
 265
 266
-326
 357
 358
 359
index 25f201eae650654ab10c1ee2777b167bd19c4070..56d4dcb3590733af0369bacfc19c99493edf893b 100644 (file)
@@ -39,6 +39,9 @@ line 1
 #
 # Client-side
 <client>
+<features>
+!hyper
+</features>
 <server>
 http
 </server>