summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/cmdline-opts/ignore-content-length.d2
-rw-r--r--docs/libcurl/opts/CURLOPT_IGNORE_CONTENT_LENGTH.32
-rw-r--r--lib/setopt.c4
-rw-r--r--tests/data/DISABLED1
4 files changed, 2 insertions, 7 deletions
diff --git a/docs/cmdline-opts/ignore-content-length.d b/docs/cmdline-opts/ignore-content-length.d
index cec990a8d..2555ccaae 100644
--- a/docs/cmdline-opts/ignore-content-length.d
+++ b/docs/cmdline-opts/ignore-content-length.d
@@ -10,4 +10,4 @@ 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.
+This option doesn't work for HTTP if libcurl was built to use hyper.
diff --git a/docs/libcurl/opts/CURLOPT_IGNORE_CONTENT_LENGTH.3 b/docs/libcurl/opts/CURLOPT_IGNORE_CONTENT_LENGTH.3
index 56e9ec954..1465832a4 100644
--- a/docs/libcurl/opts/CURLOPT_IGNORE_CONTENT_LENGTH.3
+++ b/docs/libcurl/opts/CURLOPT_IGNORE_CONTENT_LENGTH.3
@@ -61,7 +61,7 @@ if(curl) {
.fi
.SH AVAILABILITY
Added in 7.14.1. Support for FTP added in 7.46.0. This option is not working
-for the hyper backend.
+for HTTP when libcurl is built to use the hyper backend.
.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 076fe5f59..08827d1ef 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -2370,12 +2370,8 @@ 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:
/*
diff --git a/tests/data/DISABLED b/tests/data/DISABLED
index 80e9b4ec6..5aaec2b20 100644
--- a/tests/data/DISABLED
+++ b/tests/data/DISABLED
@@ -86,7 +86,6 @@
1129
1130
1131
-1137
1144
1156
1160