From 4f3f4295ea88a18fa96df1c0de3a55f4044a9bde Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 30 Dec 2023 19:18:09 +0000 Subject: [PATCH] Some HTTP fixes. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4708 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/http.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/http.c b/src/http.c index 192b1a73..e79179ca 100644 --- a/src/http.c +++ b/src/http.c @@ -390,7 +390,7 @@ static size_t _http_on_read_plain_internal(tf_http_connection_t* connection, con { connection->callback = _http_builtin_404_handler; } - size_t consumed = read_size - (connection->headers_buffer_length - connection->parsed_length) - (read_size - used_read_size); + size_t consumed = read_size - (connection->headers_buffer_length - parse_result) - (read_size - used_read_size); _http_add_body_bytes(connection, NULL, 0); return consumed; } @@ -458,7 +458,6 @@ static void _http_on_read(uv_stream_t* stream, ssize_t read_size, const uv_buf_t static void _http_timer_callback(uv_timer_t* timer) { - tf_printf("_http_timer_callback\n"); _http_connection_destroy(timer->data, "_http_timer_callback"); }