summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_static.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2019-11-14 16:39:48 +0300
committerIgor Sysoev <igor@sysoev.ru>2019-11-14 16:39:48 +0300
commit14e56fe8c869af490f76b7e88ac5d02a7ab4dd89 (patch)
tree464bd0ffab93eff1a85d3c029f55ea0d599e6040 /src/nxt_http_static.c
parent96cd6558ce35216fe8cfd7663c7af3345e64c8a8 (diff)
downloadunit-14e56fe8c869af490f76b7e88ac5d02a7ab4dd89.tar.gz
unit-14e56fe8c869af490f76b7e88ac5d02a7ab4dd89.tar.bz2
Replacing pass with action.
Diffstat (limited to '')
-rw-r--r--src/nxt_http_static.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nxt_http_static.c b/src/nxt_http_static.c
index 48a989cf..ba5e9160 100644
--- a/src/nxt_http_static.c
+++ b/src/nxt_http_static.c
@@ -27,9 +27,9 @@ static void nxt_http_static_mtypes_hash_free(void *data, void *p);
static const nxt_http_request_state_t nxt_http_static_send_state;
-nxt_http_pass_t *
+nxt_http_action_t *
nxt_http_static_handler(nxt_task_t *task, nxt_http_request_t *r,
- nxt_http_pass_t *pass)
+ nxt_http_action_t *action)
{
size_t alloc, encode;
u_char *p;
@@ -76,7 +76,7 @@ nxt_http_static_handler(nxt_task_t *task, nxt_http_request_t *r,
nxt_str_null(&extension);
}
- alloc = pass->name.length + r->path->length + index.length + 1;
+ alloc = action->name.length + r->path->length + index.length + 1;
f->name = nxt_mp_nget(r->mem_pool, alloc);
if (nxt_slow_path(f->name == NULL)) {
@@ -84,7 +84,7 @@ nxt_http_static_handler(nxt_task_t *task, nxt_http_request_t *r,
}
p = f->name;
- p = nxt_cpymem(p, pass->name.start, pass->name.length);
+ p = nxt_cpymem(p, action->name.start, action->name.length);
p = nxt_cpymem(p, r->path->start, r->path->length);
p = nxt_cpymem(p, index.start, index.length);
*p = '\0';