summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-08-23 09:58:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-08-23 11:23:17 +0200
commit46d4373ea7a0c2306daacdfb5825862cd94ff764 (patch)
tree4ae9521b87d0ccf4165c5a40092f75c91222a557 /lib
parent0854781c18c792c6ccb9ca9160745ca10ac735e4 (diff)
downloadcurl-46d4373ea7a0c2306daacdfb5825862cd94ff764.tar.gz
setopt: enable CURLOPT_IGNORE_CONTENT_LENGTH for hyper
Since this option is also used for FTP, it needs to work to set for applications even if hyper doesn't support it for HTTP. Verified by test 1137. Updated docs to specify that the option doesn't work for HTTP when using the hyper backend. Closes #7614
Diffstat (limited to 'lib')
-rw-r--r--lib/setopt.c4
1 files changed, 0 insertions, 4 deletions
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:
/*