diff options
author | Zhidao HONG <z.hong@f5.com> | 2021-04-22 13:13:06 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2021-04-22 13:13:06 +0800 |
commit | 113afb09ea7ddeebf2376cf6df3af212705e6128 (patch) | |
tree | d39074cf006ed99d03ee97503d70f8981405deec /src/nxt_http_static.c | |
parent | f90754f84a375d5183ed6883862d19dfd417225a (diff) | |
download | unit-113afb09ea7ddeebf2376cf6df3af212705e6128.tar.gz unit-113afb09ea7ddeebf2376cf6df3af212705e6128.tar.bz2 |
Router: grouped app and share fields in nxt_http_action_t.
This is a prerequisite for further introduction of openat2() features.
No functional changes.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_http_static.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nxt_http_static.c b/src/nxt_http_static.c index df2655fc..c0b48586 100644 --- a/src/nxt_http_static.c +++ b/src/nxt_http_static.c @@ -49,8 +49,8 @@ nxt_http_static_handler(nxt_task_t *task, nxt_http_request_t *r, if (nxt_slow_path(!nxt_str_eq(r->method, "GET", 3))) { if (!nxt_str_eq(r->method, "HEAD", 4)) { - if (action->u.fallback != NULL) { - return action->u.fallback; + if (action->u.share.fallback != NULL) { + return action->u.share.fallback; } nxt_http_request_error(task, r, NXT_HTTP_METHOD_NOT_ALLOWED); @@ -127,8 +127,8 @@ nxt_http_static_handler(nxt_task_t *task, nxt_http_request_t *r, break; } - if (level == NXT_LOG_ERR && action->u.fallback != NULL) { - return action->u.fallback; + if (level == NXT_LOG_ERR && action->u.share.fallback != NULL) { + return action->u.share.fallback; } if (status != NXT_HTTP_NOT_FOUND) { @@ -230,8 +230,8 @@ nxt_http_static_handler(nxt_task_t *task, nxt_http_request_t *r, nxt_file_close(task, f); if (nxt_slow_path(!nxt_is_dir(&fi))) { - if (action->u.fallback != NULL) { - return action->u.fallback; + if (action->u.share.fallback != NULL) { + return action->u.share.fallback; } nxt_log(task, NXT_LOG_ERR, "\"%FN\" is not a regular file", |