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.
This commit is contained in:
Xavier Del Campo Romero 2023-07-09 04:14:14 +02:00
parent 0822a982ef
commit fa8217c511
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 1 additions and 1 deletions

2
http.c
View File

@ -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;