aboutsummaryrefslogtreecommitdiff
path: root/handler.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-10-06 23:01:42 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2025-10-07 12:43:25 +0200
commitb9d9328956c656f0e9a007b8810cadafbe531c48 (patch)
tree028ad88fd37551fcd6ad0bf29a3ce9af745e687c /handler.c
parentdb9cb051c4ee05c07ab32dfed5bae8b7dc0916bd (diff)
WIP chunk encodingchunk
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/handler.c b/handler.c
index 63ef726..f30cfc3 100644
--- a/handler.c
+++ b/handler.c
@@ -29,7 +29,7 @@ struct handler
struct server_client *c;
struct http_ctx *http;
union http_step step;
- void *step_args;
+ void *args;
struct client *next;
} *clients;
@@ -66,14 +66,14 @@ static int on_payload(const struct http_payload *const p,
int ret;
if (s->payload)
- ret = s->payload(p, r, e->user, c->step_args);
+ ret = s->payload(p, r, e->user, c->args);
else
ret = e->f(p, r, e->user);
if (!ret)
{
s->payload = r->step.payload;
- c->step_args = r->step_args;
+ c->args = r->args;
}
return ret;
@@ -104,14 +104,14 @@ static int on_length(const unsigned long long len,
int ret;
if (s->length)
- ret = s->length(len, c, r, h->cfg.user, cl->step_args);
+ ret = s->length(len, c, r, h->cfg.user, cl->args);
else
ret = h->cfg.length(len, c, r, h->cfg.user);
if (!ret)
{
s->length = r->step.length;
- cl->step_args = r->step_args;
+ cl->args = r->args;
}
return ret;