Force lowercase on internal HTTP header names.

This commit is contained in:
Joris Vink 2022-12-29 12:58:21 +01:00
parent 46af5aa11b
commit 7a6753ca33
1 changed files with 3 additions and 0 deletions

View File

@ -1798,6 +1798,9 @@ http_validate_header(char *header)
break;
}
if (*p >= 'A' && *p <= 'Z')
*p += 32;
if (http_token[idx] == 0x00)
return (NULL);
}