summaryrefslogtreecommitdiffstats
path: root/src/handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/handler.c')
-rw-r--r--src/handler.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/handler.c b/src/handler.c
index 1c107dd..3f15e4f 100644
--- a/src/handler.c
+++ b/src/handler.c
@@ -103,6 +103,9 @@ int tip_client_state_process_payload(struct tip_client *cli)
switch (cli->method) {
case TIP_METHOD_GET:
case TIP_METHOD_POST:
+ if (!redirect)
+ break;
+
/* get chunk number from file extension, e.g. FILE.0 */
chunk = strchr(uri, '.');
if (chunk) {
@@ -188,6 +191,9 @@ 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;