]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
quiche: fix build without any HTTP/2 implementation
authorStefan Eissing <stefan@eissing.org>
Mon, 9 Jan 2023 08:23:03 +0000 (09:23 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 9 Jan 2023 10:09:34 +0000 (11:09 +0100)
Fixes #10260
Closes #10263

lib/http.h
lib/vquic/curl_quiche.c

index 99ec7169e7cffbec76673a9b12dbd04e03804955..9da4694fa3a64666a858326f4eb952fba5946e9b 100644 (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
index 5a9feb997728fb50422bb0cf4a528b5703d6bfbf..48ea4399ade73bb4560703a9b465b208c4dba5a1 100644 (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));