mirror of
https://github.com/curl/curl.git
synced 2026-07-24 20:17:17 +03:00
quiche: fix build without any HTTP/2 implementation
Fixes #10260 Closes #10263
This commit is contained in:
parent
0978b2ef25
commit
0ef2926881
2 changed files with 1 additions and 5 deletions
|
|
@ -239,7 +239,6 @@ struct HTTP {
|
|||
#if defined(USE_NGHTTP2) || defined(USE_NGHTTP3)
|
||||
bool bodystarted;
|
||||
int status_code; /* HTTP status code */
|
||||
bool closed; /* TRUE on HTTP2 stream close */
|
||||
char *mem; /* points to a buffer in memory to store received data */
|
||||
size_t len; /* size of the buffer 'mem' points to */
|
||||
size_t memlen; /* size of data copied to mem */
|
||||
|
|
@ -249,6 +248,7 @@ struct HTTP {
|
|||
const uint8_t *upload_mem; /* points to a buffer to read from */
|
||||
size_t upload_len; /* size of the buffer 'upload_mem' points to */
|
||||
curl_off_t upload_left; /* number of bytes left to upload */
|
||||
bool closed; /* TRUE on HTTP2 stream close */
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_QUIC
|
||||
|
|
|
|||
|
|
@ -464,11 +464,7 @@ static ssize_t cf_quiche_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
ssize_t recvd = -1;
|
||||
ssize_t rcode;
|
||||
quiche_h3_event *ev;
|
||||
struct h3h1header headers;
|
||||
struct HTTP *stream = data->req.p.http;
|
||||
headers.dest = buf;
|
||||
headers.destlen = len;
|
||||
headers.nlen = 0;
|
||||
|
||||
CF_DEBUGF(infof(data, CFMSG(cf, "recv[%u]"), stream->stream3_id));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue