commit a8db82dd8b6246c8169b2171682a5f53cc278ed3
parent d900769bdeca0c06f19c2fdf7648eebb4b193b99
Author: finwo <finwo@pm.me>
Date: Sat, 8 Jul 2023 22:10:27 +0200
Fix case sensitivity in header_del
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/http-parser.c b/src/http-parser.c
@@ -112,7 +112,7 @@ void http_parser_header_del(struct http_parser_message *subject, const char *key
struct http_parser_header *header_prev = NULL;
struct http_parser_header *header_cur = subject->headers;
while(header_cur) {
- if (strcmp(header_cur->key, key) == 0) {
+ if (strcasecmp(header_cur->key, key) == 0) {
if (header_prev) {
header_prev->next = header_cur->next;
} else {