aboutsummaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-09 04:14:14 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-20 23:52:56 +0200
commitf136fdd463ac25a86e1870417e90da3a2db71ed7 (patch)
tree188fad8a999a000367ebd50060b25a2b8edbe8c3 /http.c
parent01cebe5917c6f3cdca0e13f7b681bb0d6867bb75 (diff)
downloadlibweb-f136fdd463ac25a86e1870417e90da3a2db71ed7.tar.gz
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.
Diffstat (limited to 'http.c')
-rw-r--r--http.c2
1 files changed, 1 insertions, 1 deletions
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;