Now we're uploading some data.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4683 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2023-12-21 00:00:15 +00:00
parent c2f62cd8e0
commit e7771f539d

View File

@ -219,9 +219,14 @@ static void _http_on_read(uv_stream_t* stream, ssize_t read_size, const uv_buf_t
_http_add_body_bytes(connection, connection->headers_buffer + parse_result, connection->headers_buffer_length - parse_result); _http_add_body_bytes(connection, connection->headers_buffer + parse_result, connection->headers_buffer_length - parse_result);
} }
else if (parse_result == -2)
{
/* Incomplete. Will try again next time. */
}
else else
{ {
tf_printf("phr_parse_request: %d\n", parse_result); tf_printf("phr_parse_request: %d\n", parse_result);
_http_connection_destroy(connection);
} }
} }
else else