header 遍历跳过 map[0], 即 map[TFE_HTTP_UNKNOWN_FIELD] = NULL;
This commit is contained in:
@@ -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])))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user