summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-05 22:38:14 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-05 22:38:14 +0200
commitcd44711ad286375a3fdd7b59ab1d97d1e606fc85 (patch)
tree8626b72bdbb37b9443d4282b6d3e67a3e01138ff
parentd9e137e5502eadb533fba533bd6690d577d08a10 (diff)
downloadcurl-bagder/quiche-success.tar.gz
fixup http.h when built with H3 but without H2 supportbagder/quiche-success
-rw-r--r--lib/http.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/http.h b/lib/http.h
index 455b81477..f6f5d4fd5 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -178,14 +178,16 @@ struct HTTP {
size_t len; /* size of the buffer 'mem' points to */
size_t memlen; /* size of data copied to mem */
- 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 */
-
char **push_headers; /* allocated array */
size_t push_headers_used; /* number of entries filled in */
size_t push_headers_alloc; /* number of entries allocated */
#endif
+#if defined(USE_NGHTTP2) || defined(ENABLE_QUIC)
+ /* fields used by both HTTP/2 and HTTP/3 */
+ 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 */
+#endif
#ifdef ENABLE_QUIC
/*********** for HTTP/3 we store stream-local data here *************/