]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test269: disable for hyper 7186/head
authorDaniel Stenberg <daniel@haxx.se>
Thu, 3 Jun 2021 15:56:36 +0000 (17:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 3 Jun 2021 21:11:11 +0000 (23:11 +0200)
--ignore-content-length / CURLOPT_IGNORE_CONTENT_LENGTH doesn't work
with hyper.

Closes #7184

docs/HYPER.md
docs/cmdline-opts/ignore-content-length.d
docs/libcurl/opts/CURLOPT_IGNORE_CONTENT_LENGTH.3
lib/setopt.c
tests/data/test269

index b1a6d0cbb121cf35985359a625e8368508b16273..da6c663377b33b42a1a0edbf91c73694cff37321 100644 (file)
@@ -44,6 +44,13 @@ The API in Hyper delivers received HTTP headers as (cleaned up) name=value
 pairs, making it impossible for curl to know the exact byte representation
 over the wire with Hyper.
 
+## Limitations
+
+The hyper backend doesn't support
+
+- `CURLOPT_IGNORE_CONTENT_LENGTH`
+- RTSP
+
 ## Remaining issues
 
 This backend is still not feature complete with the native backend. Areas that
index 82ac5da0918d158ae9b8c45a3b9853bb938d99bf..cec990a8d653f2c4bff2e6f89c6aac623d68dd46 100644 (file)
@@ -9,3 +9,5 @@ files larger than 2 gigabytes.
 
 For FTP (since 7.46.0), skip the RETR command to figure out the size before
 downloading a file.
+
+This option doesn't work if libcurl was built to use hyper for HTTP.
index e51b78fb78fd28a57393abdc8c53230248dffc85..56e9ec954316e85b1e88fb8de95653565d61f449 100644 (file)
@@ -5,7 +5,7 @@
 .\" *                            | (__| |_| |  _ <| |___
 .\" *                             \___|\___/|_| \_\_____|
 .\" *
-.\" * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+.\" * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
 .\" *
 .\" * This software is licensed as described in the file COPYING, which
 .\" * you should have received as part of this distribution. The terms
@@ -60,7 +60,8 @@ if(curl) {
 }
 .fi
 .SH AVAILABILITY
-Added in 7.14.1. Support for FTP added in 7.46.0.
+Added in 7.14.1. Support for FTP added in 7.46.0. This option is not working
+for the hyper backend.
 .SH RETURN VALUE
 Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
 .SH "SEE ALSO"
index 5446700e74fd9fc212919d6c27dde3de3d5477a0..4533f5be68080f477bd1b80a3cba7515a63d510a 100644 (file)
@@ -2370,8 +2370,12 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
     break;
 
   case CURLOPT_IGNORE_CONTENT_LENGTH:
+#ifndef USE_HYPER
     data->set.ignorecl = (0 != va_arg(param, long)) ? TRUE : FALSE;
     break;
+#else
+    return CURLE_NOT_BUILT_IN;
+#endif
 
   case CURLOPT_CONNECT_ONLY:
     /*
index 448d5fbeb03e724e8e6e68e0a89ba60e139100e2..36014c808b50a7faae5314482b24b67d3a9c513d 100644 (file)
@@ -26,6 +26,9 @@ muahahaha
 #
 # Client-side
 <client>
+<features>
+!hyper
+</features>
 <server>
 http
 </server>