summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index d4d1dea..e71d5ff 100644
--- a/src/main.c
+++ b/src/main.c
@@ -42,7 +42,7 @@ struct ev_loop *tip_main_loop;
enum {
TIP_CLIENT_GET_HEADER,
TIP_CLIENT_GET_PAYLOAD,
- TIP_CLIENT_NOTIFY_REDIRECT,
+ TIP_CLIENT_POST_REDIRECT,
TIP_CLIENT_DONE,
};
@@ -239,7 +239,7 @@ static int tip_client_state_recv_payload(struct tip_client *cli)
if (cli->redirected) {
tip_client_close(cli);
tip_client_connect(addr);
- cli->state = TIP_CLIENT_NOTIFY_REDIRECT;
+ cli->state = TIP_CLIENT_POST_REDIRECT;
return 1;
}
@@ -313,7 +313,7 @@ static void tip_client_read_cb(struct ev_loop *loop, struct ev_io *io, int event
if (ret == 0)
goto close;
break;
- case TIP_CLIENT_NOTIFY_REDIRECT:
+ case TIP_CLIENT_POST_REDIRECT:
ret = tip_client_state_notify_redirect(cli);
if (ret < 0)
goto error;
@@ -353,7 +353,7 @@ static void tip_client_connect_cb(struct ev_loop *loop, struct ev_io *io, int ev
syslog(LOG_INFO, "connected to %s to fetch file %s\n", addr, filename);
- if (cli->state == TIP_CLIENT_NOTIFY_REDIRECT)
+ if (cli->state == TIP_CLIENT_POST_REDIRECT)
snprintf(buf, sizeof(buf), "POST /%s HTTP/1.1\r\n\r\n", filename);
else
snprintf(buf, sizeof(buf), "GET /%s HTTP/1.1\r\n\r\n", filename);