1
0
Fork 0

http: Insert name into http_post_file

Whereas slcl, the project where slweb started, ignored this field, some
applications might require it.
This commit is contained in:
Xavier Del Campo Romero 2023-09-09 00:36:26 +02:00
parent 09909c0a3b
commit 34d716082a
Signed by untrusted user: xavi
GPG Key ID: 84FF3612A9BF43F2
2 changed files with 2 additions and 1 deletions

1
http.c
View File

@ -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
};

View File

@ -35,7 +35,7 @@ struct http_payload
const struct http_post_file
{
const char *tmpname, *filename;
const char *name, *tmpname, *filename;
} *files;
} post;
} u;