Skip to content

Commit 46573e6

Browse files
committed
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 <[email protected]> Signed-off-by: Andrew Clayton <[email protected]>
1 parent a28bef0 commit 46573e6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/nxt_router.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,12 @@ static const nxt_str_t http_prefix = nxt_string("HTTP_");
274274
static const nxt_str_t empty_prefix = nxt_string("");
275275

276276
static const nxt_str_t *nxt_app_msg_prefix[] = {
277-
&empty_prefix,
278-
&empty_prefix,
279-
&http_prefix,
280-
&http_prefix,
281-
&http_prefix,
282-
&empty_prefix,
277+
[NXT_APP_EXTERNAL] = &empty_prefix,
278+
[NXT_APP_PYTHON] = &empty_prefix,
279+
[NXT_APP_PHP] = &http_prefix,
280+
[NXT_APP_PERL] = &http_prefix,
281+
[NXT_APP_RUBY] = &http_prefix,
282+
[NXT_APP_JAVA] = &empty_prefix,
283283
};
284284

285285

0 commit comments

Comments
 (0)