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-09 04:14:14 +0200 |
| commit | fa8217c511a0ff732be1c02921e105597ced7850 (patch) | |
| tree | 16ae8f3d33dbefeeb3f448f208c19ecf5b83b69c | |
| parent | 0822a982ef3b085dc109ec373ff537974503eb04 (diff) | |
| download | slcl-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.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; |
