MINOR: h2/htx: Set hdrs_bytes on the SL when an HTX message is produced
diff --git a/src/h2.c b/src/h2.c
index 4803137..6ec69c4 100644
--- a/src/h2.c
+++ b/src/h2.c
@@ -590,6 +590,7 @@
 	int phdr;
 	int ret;
 	int i;
+	uint32_t used = htx_used_space(htx);
 	struct htx_sl *sl = NULL;
 	unsigned int sl_flags = 0;
 
@@ -745,6 +746,9 @@
 	/* now send the end of headers marker */
 	htx_add_endof(htx, HTX_BLK_EOH);
 
+	/* Set bytes used in the HTX mesage for the headers now */
+	sl->hdrs_bytes = htx_used_space(htx) - used;
+
 	ret = 1;
 	return ret;
 
@@ -830,6 +834,7 @@
 	int phdr;
 	int ret;
 	int i;
+	uint32_t used = htx_used_space(htx);
 	struct htx_sl *sl = NULL;
 	unsigned int sl_flags = 0;
 
@@ -928,6 +933,9 @@
 	/* now send the end of headers marker */
 	htx_add_endof(htx, HTX_BLK_EOH);
 
+	/* Set bytes used in the HTX mesage for the headers now */
+	sl->hdrs_bytes = htx_used_space(htx) - used;
+
 	ret = 1;
 	return ret;