From 298f9da0de30a6cd9652d71cd5e529fb5d925c89 Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Thu, 23 Dec 2021 18:40:14 +0100 Subject: revert workaround for file chunks The client now uses fallocate() to store a single file. --- src/handler.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/handler.c') diff --git a/src/handler.c b/src/handler.c index f689c6e..e8b421e 100644 --- a/src/handler.c +++ b/src/handler.c @@ -103,9 +103,6 @@ int tip_client_state_process_payload(struct tip_client *cli) switch (cli->method) { case TIP_METHOD_GET: case TIP_METHOD_POST: - if (!redirect) - break; - /* skip checksum files. */ if (strstr(uri, ".full.sum")) { cli->checksum = true; @@ -197,9 +194,6 @@ int tip_client_state_process_payload_reply(struct tip_client *cli) switch (cli->method) { case TIP_METHOD_GET: - if (!redirect) - break; - if (cli->chunk < 0) break; -- cgit v1.2.3-18-g5258