From 8c0f13587764a29def9a99d1915b6786efb04c6a Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Mon, 16 Sep 2019 14:02:33 +0800 Subject: [PATCH] =?UTF-8?q?header=20=E9=81=8D=E5=8E=86=E8=B7=B3=E8=BF=87?= =?UTF-8?q?=20map[0],=20=E5=8D=B3=20map[TFE=5FHTTP=5FUNKNOWN=5FFIELD]=20?= =?UTF-8?q?=3D=20NULL;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/protocol/http2/src/http2_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/protocol/http2/src/http2_common.cpp b/plugin/protocol/http2/src/http2_common.cpp index b59f52b..ef2ad56 100644 --- a/plugin/protocol/http2/src/http2_common.cpp +++ b/plugin/protocol/http2/src/http2_common.cpp @@ -38,7 +38,7 @@ Http2Plugin *http2_plugin() int http2_header_str_to_val(const char *str, const char * map[], unsigned int map_size) { - for (unsigned int i = 0; i < map_size; i++) + for (unsigned int i = 1; i < map_size; i++) { if (!strncasecmp(str, map[i], strlen(map[i]))) {