diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2023-08-08 12:48:41 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2023-08-10 16:58:35 +0100 |
commit | 46573e6993552e0ecbcbcd6f4e191b4b2e3f5dc9 (patch) | |
tree | 8be7215c0f9b2bc3187ff337b669cee5d21c7a3a /src/nxt_router.c | |
parent | a28bef097cd63da3bbb375ef0283e65be41a88ff (diff) | |
download | unit-46573e6993552e0ecbcbcd6f4e191b4b2e3f5dc9.tar.gz unit-46573e6993552e0ecbcbcd6f4e191b4b2e3f5dc9.tar.bz2 |
Index initialise the nxt_app_msg_prefix array.
This makes it much more clear what's what.
This is in preparation for adding WebAssembly language module support.
Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/nxt_router.c')
-rw-r--r-- | src/nxt_router.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c index d089cfb8..5d9c60a1 100644 --- a/src/nxt_router.c +++ b/src/nxt_router.c @@ -274,12 +274,12 @@ static const nxt_str_t http_prefix = nxt_string("HTTP_"); static const nxt_str_t empty_prefix = nxt_string(""); static const nxt_str_t *nxt_app_msg_prefix[] = { - &empty_prefix, - &empty_prefix, - &http_prefix, - &http_prefix, - &http_prefix, - &empty_prefix, + [NXT_APP_EXTERNAL] = &empty_prefix, + [NXT_APP_PYTHON] = &empty_prefix, + [NXT_APP_PHP] = &http_prefix, + [NXT_APP_PERL] = &http_prefix, + [NXT_APP_RUBY] = &http_prefix, + [NXT_APP_JAVA] = &empty_prefix, }; |