kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 7a6753ca332d3b6ce6651b6aae3ddb143c0ec8bb
parent 46af5aa11bbf858275c53243a8ee2065f9c6d323
Author: Joris Vink <joris@coders.se>
Date:   Thu, 29 Dec 2022 12:58:21 +0100

Force lowercase on internal HTTP header names.

Diffstat:
src/http.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/http.c b/src/http.c @@ -1798,6 +1798,9 @@ http_validate_header(char *header) break; } + if (*p >= 'A' && *p <= 'Z') + *p += 32; + if (http_token[idx] == 0x00) return (NULL); }