mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
Force lowercase on internal HTTP header names.
This commit is contained in:
parent
46af5aa11b
commit
7a6753ca33
@ -1798,6 +1798,9 @@ http_validate_header(char *header)
|
||||
break;
|
||||
}
|
||||
|
||||
if (*p >= 'A' && *p <= 'Z')
|
||||
*p += 32;
|
||||
|
||||
if (http_token[idx] == 0x00)
|
||||
return (NULL);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user