http/multipart: use proper progress value to test eof

pull/4420/head
Victor Julien 6 years ago
parent 95237f9894
commit cd66c37711

@ -1342,7 +1342,7 @@ static int HtpRequestBodyHandleMultipart(HtpState *hstate, HtpTxUserData *htud,
filedata_len = form_end - filedata;
} else if (form_end != NULL && form_end == header_start) {
filedata_len = form_end - filedata - 2; /* 0d 0a */
} else if (tx_progress > HTP_RESPONSE_BODY) {
} else if (tx_progress > HTP_REQUEST_BODY) {
filedata_len = chunks_buffer_len;
flags = FILE_TRUNCATED;
}

Loading…
Cancel
Save