httpd: fix upload file with Firefox

Signed-off-by: Jianhui Zhao <jianhui.zhao@gl-inet.com>
This commit is contained in:
Jianhui Zhao
2022-11-22 19:25:58 +08:00
parent 5e00cce3d3
commit 1a72e4144c

View File

@@ -468,12 +468,7 @@ static int httpd_recv_hdr(struct httpd_instance *inst,
/* uploading mark */
pdata->is_uploading = 1;
is_uploading = 1;
/*
* if we havn't received any payload, stop going to
* next status.
*/
if (pdata->upload_size == 0)
ret = 1;
ret = 1;
}
} else {
pdata->status = HTTPD_S_FULL_RCVD;