From f136fdd463ac25a86e1870417e90da3a2db71ed7 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sun, 9 Jul 2023 04:14:14 +0200 Subject: http.c: Use case-insensitive compare for Content-Disposition HTTP headers are case-insensitive, so the implementation must accept Content-Diposition, content-disposition or any other variation. --- http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.c b/http.c index 3862fa7..bf0bfda 100644 --- a/http.c +++ b/http.c @@ -1303,7 +1303,7 @@ static int mf_header_cr_line(struct http_ctx *const h) if (ret) return ret; - else if (!strncmp(line, "Content-Disposition", n) + else if (!strncasecmp(line, "Content-Disposition", n) && (ret = set_content_disposition(h, value))) return ret; -- cgit v1.2.3