]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http: const up readonly H2_NON_FIELD
authorCaolán McNamara <caolan.mcnamara@collabora.com>
Tue, 22 Jul 2025 13:48:26 +0000 (14:48 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 23 Jul 2025 14:23:39 +0000 (16:23 +0200)
Closes #17996

lib/http.c

index e5a0696274fcbbd6900aa9593d3083806189ad70..9a844301fba86ad9a7e82fe8d1efa842446a1958 100644 (file)
@@ -4569,7 +4569,7 @@ struct name_const {
 };
 
 /* keep them sorted by length! */
-static struct name_const H2_NON_FIELD[] = {
+static const struct name_const H2_NON_FIELD[] = {
   { STRCONST("Host") },
   { STRCONST("Upgrade") },
   { STRCONST("Connection") },