diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-07-09 04:14:14 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-07-20 23:52:56 +0200 |
| commit | f136fdd463ac25a86e1870417e90da3a2db71ed7 (patch) | |
| tree | 188fad8a999a000367ebd50060b25a2b8edbe8c3 | |
| parent | 01cebe5917c6f3cdca0e13f7b681bb0d6867bb75 (diff) | |
| download | libweb-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.
| -rw-r--r-- | http.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
