diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-03-04 04:04:09 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-07-20 23:52:51 +0200 |
| commit | 4ef6d1b86f601e6a288e6c8cb399d3d0888ca783 (patch) | |
| tree | 21bee23db7b1974e7d75642034935f0d0dc10e31 | |
| parent | 5a831267aa3d6624609e3c500d0408da02983f81 (diff) | |
http.c: Compare headers as case-insensitive
Web browsers such as lynx send "Content-length" instead of
"Content-Length" (as done by LibreWolf and Chromium).
| -rw-r--r-- | http.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -790,7 +790,7 @@ static int process_header(struct http_ctx *const h, const char *const line, const struct header *const hdr = &headers[i]; int ret; - if (!strncmp(line, hdr->header, n) && (ret = hdr->f(h, value))) + if (!strncasecmp(line, hdr->header, n) && (ret = hdr->f(h, value))) return ret; } |
