aboutsummaryrefslogtreecommitdiff
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-09 04:14:14 +0200
commitfa8217c511a0ff732be1c02921e105597ced7850 (patch)
tree16ae8f3d33dbefeeb3f448f208c19ecf5b83b69c
parent0822a982ef3b085dc109ec373ff537974503eb04 (diff)
downloadslcl-fa8217c511a0ff732be1c02921e105597ced7850.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.
-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;