quiche: fix build without any HTTP/2 implementation

Fixes #10260
Closes #10263
This commit is contained in:
Stefan Eissing 2023-01-09 09:23:03 +01:00 committed by Daniel Stenberg
parent 0978b2ef25
commit 0ef2926881
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 1 additions and 5 deletions

View file

@ -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

View file

@ -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));