aboutsummaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-09-09 00:36:26 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-09-09 00:39:43 +0200
commit34d716082a0136056373f3d0c6ed7abce45484b3 (patch)
tree9e1e2117e9689f6986c7156279488d610dd2c619 /http.c
parent09909c0a3b326efd6a2b87df95d0e73c1e394c29 (diff)
http: Insert name into http_post_file
Whereas slcl, the project where slweb started, ignored this field, some applications might require it.
Diffstat (limited to 'http.c')
-rw-r--r--http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/http.c b/http.c
index e239972..9274ccb 100644
--- a/http.c
+++ b/http.c
@@ -1488,6 +1488,7 @@ static int apply_from_file(struct http_ctx *const h, struct form *const f)
*pf = (const struct http_post_file)
{
+ .name = f->name,
.tmpname = f->tmpname,
.filename = f->filename
};