refactor: Remove extraneous assert

master
Sean McBride 3 years ago
parent 7d7224a6a9
commit 17cbf3ce4f

@ -228,8 +228,6 @@ http_session_receive_request(struct http_session *session, http_session_receive_
assert(header_size > 0); assert(header_size > 0);
int required_size = header_size + session->http_request.body_length; int required_size = header_size + session->http_request.body_length;
assert(required_size > 0);
if (required_size > request_buffer->capacity) { if (required_size > request_buffer->capacity) {
uint8_t *old_buffer = request_buffer->buffer; uint8_t *old_buffer = request_buffer->buffer;
if (vec_u8_resize(request_buffer, required_size) != 0) { if (vec_u8_resize(request_buffer, required_size) != 0) {

Loading…
Cancel
Save