From e7771f539d9fa055bd8e6b6c1e702a63fcd95819 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 21 Dec 2023 00:00:15 +0000 Subject: [PATCH] Now we're uploading some data. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4683 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/http.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/http.c b/src/http.c index 33b752a5..b96c759f 100644 --- a/src/http.c +++ b/src/http.c @@ -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); } + else if (parse_result == -2) + { + /* Incomplete. Will try again next time. */ + } else { tf_printf("phr_parse_request: %d\n", parse_result); + _http_connection_destroy(connection); } } else