mirror of
https://github.com/moparisthebest/curl
synced 2025-01-12 06:28:04 -05:00
test269: disable for hyper
--ignore-content-length / CURLOPT_IGNORE_CONTENT_LENGTH doesn't work with hyper. Closes #7184
This commit is contained in:
parent
b193fd3bbd
commit
628ebd82b9
@ -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
|
pairs, making it impossible for curl to know the exact byte representation
|
||||||
over the wire with Hyper.
|
over the wire with Hyper.
|
||||||
|
|
||||||
|
## Limitations
|
||||||
|
|
||||||
|
The hyper backend doesn't support
|
||||||
|
|
||||||
|
- `CURLOPT_IGNORE_CONTENT_LENGTH`
|
||||||
|
- RTSP
|
||||||
|
|
||||||
## Remaining issues
|
## Remaining issues
|
||||||
|
|
||||||
This backend is still not feature complete with the native backend. Areas that
|
This backend is still not feature complete with the native backend. Areas that
|
||||||
|
@ -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
|
For FTP (since 7.46.0), skip the RETR command to figure out the size before
|
||||||
downloading a file.
|
downloading a file.
|
||||||
|
|
||||||
|
This option doesn't work if libcurl was built to use hyper for HTTP.
|
||||||
|
@ -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
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
.\" * you should have received as part of this distribution. The terms
|
.\" * you should have received as part of this distribution. The terms
|
||||||
@ -60,7 +60,8 @@ if(curl) {
|
|||||||
}
|
}
|
||||||
.fi
|
.fi
|
||||||
.SH AVAILABILITY
|
.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
|
.SH RETURN VALUE
|
||||||
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
|
@ -2370,8 +2370,12 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case CURLOPT_IGNORE_CONTENT_LENGTH:
|
case CURLOPT_IGNORE_CONTENT_LENGTH:
|
||||||
|
#ifndef USE_HYPER
|
||||||
data->set.ignorecl = (0 != va_arg(param, long)) ? TRUE : FALSE;
|
data->set.ignorecl = (0 != va_arg(param, long)) ? TRUE : FALSE;
|
||||||
break;
|
break;
|
||||||
|
#else
|
||||||
|
return CURLE_NOT_BUILT_IN;
|
||||||
|
#endif
|
||||||
|
|
||||||
case CURLOPT_CONNECT_ONLY:
|
case CURLOPT_CONNECT_ONLY:
|
||||||
/*
|
/*
|
||||||
|
@ -26,6 +26,9 @@ muahahaha
|
|||||||
#
|
#
|
||||||
# Client-side
|
# Client-side
|
||||||
<client>
|
<client>
|
||||||
|
<features>
|
||||||
|
!hyper
|
||||||
|
</features>
|
||||||
<server>
|
<server>
|
||||||
http
|
http
|
||||||
</server>
|
</server>
|
||||||
|
Loading…
Reference in New Issue
Block a user