httpd: fix upload file with Firefox
Signed-off-by: Jianhui Zhao <jianhui.zhao@gl-inet.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user